method
ChildrenDraft.EditChildren
EditChildren targets the one direct children branch of an object/array/layout. Blocks, tabs and embedded payloads require their explicit branch selector.
Arguments
| Argument | Type | Description |
|---|---|---|
name | string | The name value. |
edit | func(*ChildrenDraft) error | The edit value. |
Returns
The declared result.
errorFull signature
func (d *ChildrenDraft) EditChildren(
name string,
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.