Documentation
¶
Overview ¶
Package kdl reads a KDL v2 document into a small tree of its own.
It wraps github.com/calico32/kdl-go, whose public API is 0.x and documented as unstable, and pins the parser to version 2. The format is v2, so there is nothing to detect: with auto-detection a genuine v2 syntax error late in a document can be reported as a bogus error on the first `#true` far earlier.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
File string
Name string
Line int
Args []Value
Children []*Node
// contains filtered or unexported fields
}
Node is one node of the document.
func ParseString ¶
ParseString reads a KDL v2 document from a string.
func (*Node) ChildrenNamed ¶
Children of a given name, in document order.
Click to show internal directories.
Click to hide internal directories.