method
ChildrenDraft.EditBranch
EditBranch targets an explicit object, row, block case, tab or embedded case.
Arguments
| Argument | Type | Description |
|---|---|---|
name | string | The name value. |
selector | BranchSelector | The selector value. |
edit | func(*ChildrenDraft) error | The edit value. |
Returns
The declared result.
errorFull signature
func (d *ChildrenDraft) EditBranch(
name string,
selector BranchSelector,
edit func(*ChildrenDraft) error,
) errorRelated types
ChildrenDraftChildrenDraft owns a detached slice. Committing snapshots again, so retained drafts cannot mutate published graphs. Structural edits are explicit.
BranchSelectorBranchSelector selects one structural child boundary, never a flattened path. Index identifies an authored tab; Tree/Case/Key identify plugin payload cases.