interface

Node

Node is any field definition that can be placed in Fields. Authors normally create nodes with constructors such as Text, Select, Group, or Array and use their concrete fluent methods before adding them to a field list. The interface is sealed so Ridu can snapshot every supported field safely.

Properties

PropertyTypeDescription
Namefunc() stringThe Name value.
Kindfunc() KindThe Kind value.

Full signature

type Node interface { Name() string Kind() Kind graphSnapshot() View }

Source field/graph.go:18