Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadPath = errors.New("invalid path")
)
Functions ¶
func FixLineColumn ¶
FixLineColumn populates the Line and Column of nodes that only have Index set.
Types ¶
type Key ¶
type Key string
Key is used to differentiate leaves describing the start and end of where a key starts and where a value starts.
type Marker ¶
Markers are composed of information regarding the start and end of where a Node exists in its source.
func MarkerFromIndices ¶
type Node ¶
type Node interface {
Start() (int64, int64) // line, col
End() (int64, int64)
Get(cxt path.ContextPath) (Node, error)
GetMarker() Marker
// contains filtered or unexported methods
}
Node is generic representation of a json or yaml node.
Click to show internal directories.
Click to hide internal directories.