Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NodeFactory = NewFactory()
Functions ¶
func NewElements ¶
func NewElements() *elements
func NewFactory ¶
func NewFactory() *outerNodesFactory
Types ¶
type Constructor ¶
type Constructor func() Element
type Factory ¶
type Factory interface { // Register cons as a constructor for an element named inner, inside an element named outer Add(cons Constructor) AddNamed(cons Constructor, outer, inner xml.Name) // Construct an element named inner for an outer element named outer Get(outer, inner *xml.Name) Element }
Factory pattern interface with a two-level match (outer, inner) of constructors
type InnerElements ¶
type InnerElements interface { Elements() []Element AddElement(Element) Registrable }
type Registrable ¶
Click to show internal directories.
Click to hide internal directories.