Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
Array represents a HOCON array
type Boolean ¶
Boolean represents true/false
type Concatenation ¶
Concatenation represents value concatenation
func (*Concatenation) End ¶
func (c *Concatenation) End() Position
func (*Concatenation) Pos ¶
func (c *Concatenation) Pos() Position
func (*Concatenation) String ¶
func (c *Concatenation) String() string
type Duration ¶
type Duration struct {
Value float64 // Numeric value
Unit DurationUnit // Unit of duration
Raw string // Original text
Nanoseconds int64 // Normalized to nanoseconds
Pos_ Position
End_ Position
}
Duration represents a duration literal (e.g., 10s, 500ms)
type DurationUnit ¶
type DurationUnit int
DurationUnit represents a time duration unit
const ( Nanoseconds DurationUnit = iota Microseconds Milliseconds Seconds Minutes Hours Days )
func (DurationUnit) String ¶
func (u DurationUnit) String() string
type Field ¶
Field represents a key-value pair in an object
type Include ¶
type Include struct {
Type IncludeType
Path string
Required bool
Pos_ Position
End_ Position
}
Include represents include directives
type IncludeType ¶
type IncludeType int
IncludeType represents the type of include directive
const ( IncludeFile IncludeType = iota IncludeURL IncludeClasspath )
func (IncludeType) String ¶
func (it IncludeType) String() string
type Node ¶
type Node interface {
Pos() Position // Starting position
End() Position // Ending position
String() string // Human-readable representation
}
Node is the base interface for all AST nodes
type Null ¶
Null represents null value
type Number ¶
Number represents a numeric value
type Object ¶
Object represents a HOCON object
type Path ¶
type Path struct {
Elements []*PathElement
Pos_ Position
End_ Position
}
Path represents a dot-separated path
type PathElement ¶
PathElement is a single component of a path
func (*PathElement) End ¶
func (pe *PathElement) End() Position
func (*PathElement) Pos ¶
func (pe *PathElement) Pos() Position
func (*PathElement) String ¶
func (pe *PathElement) String() string
type Position ¶
Position tracks a location in the source file
type Root ¶
Root represents the top-level document
type Size ¶
type Size struct {
Value float64 // Numeric value
Unit SizeUnit // Unit of size
Raw string // Original text
Bytes int64 // Normalized to bytes
Pos_ Position
End_ Position
}
Size represents a size literal (e.g., 512M, 1GB)
type String ¶
String represents a string value (quoted or unquoted)
type Substitution ¶
type Substitution struct {
Path *Path
Optional bool
Default Value // default value for :- syntax, nil if not present
Pos_ Position
End_ Position
}
Substitution represents ${path} or ${?path} or ${path :- default}
func (*Substitution) End ¶
func (s *Substitution) End() Position
func (*Substitution) Pos ¶
func (s *Substitution) Pos() Position
func (*Substitution) String ¶
func (s *Substitution) String() string
Source Files
¶
- ast.go
- nodes.go