Documentation ¶
Overview ¶
Package value provides types that can be used to represent structured data that include comments
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶ added in v0.8.0
type Interface interface { Get(...interface{}) Interface Value() interface{} Comment() string SetComment(string) Nodes() []Node }
Interface is the main interface for the value package
type List ¶ added in v0.8.0
type List struct {
// contains filtered or unexported fields
}
List represents a slice value
func (*List) SetComment ¶ added in v0.8.0
SetComment sets the List's comment
type Map ¶ added in v0.8.0
type Map struct {
// contains filtered or unexported fields
}
Map represents a map[string]interface value
func (*Map) SetComment ¶ added in v0.8.0
SetComment sets the Map's comment
type Node ¶ added in v0.8.0
type Node struct { Path []interface{} Content Interface }
Node is an element of a structure data value
type Scalar ¶ added in v0.8.0
type Scalar struct {
// contains filtered or unexported fields
}
Scalar represents an arbitrary (scalar) interface{} value
func (*Scalar) SetComment ¶ added in v0.8.0
SetComment sets the Scalar's comment
Click to show internal directories.
Click to hide internal directories.