Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeArrays ¶
MergeArrays concatenates arrays
Types ¶
type IncludeResolver ¶
type IncludeResolver struct {
// contains filtered or unexported fields
}
IncludeResolver resolves include directives in HOCON files
func NewIncludeResolver ¶
func NewIncludeResolver(baseDir string, parser Parser) *IncludeResolver
NewIncludeResolver creates a new include resolver
type Parser ¶
Parser is an interface for parsing HOCON files This allows the include resolver to parse included files
type SubstitutionResolver ¶
type SubstitutionResolver struct {
// contains filtered or unexported fields
}
SubstitutionResolver resolves substitutions in HOCON AST
func NewSubstitutionResolver ¶
func NewSubstitutionResolver(root *ast.Object) *SubstitutionResolver
NewSubstitutionResolver creates a new substitution resolver
func (*SubstitutionResolver) Resolve ¶
func (r *SubstitutionResolver) Resolve() (*ast.Object, error)
Resolve resolves all substitutions in the AST and returns the resolved object
Source Files
¶
- include.go
- merge.go
- substitution.go
Click to show internal directories.
Click to hide internal directories.