elliotchance/gedcom

View on GitHub
format_node.go

Summary

Maintainability
A
0 mins
Test Coverage
package gedcom

// FormatNode represents an assigned name given to a consistent format in which
// information can be conveyed.
type FormatNode struct {
    *SimpleNode
}

// NewFormatNode creates a new FORM node.
func NewFormatNode(value string, children ...Node) *FormatNode {
    return &FormatNode{
        newSimpleNode(TagFormat, value, "", children...),
    }
}