MCPcopy
hub / github.com/hashicorp/hcl / NewParser

Function NewParser

hclparse/parser.go:46–50  ·  view source on GitHub ↗

NewParser creates a new parser, ready to parse configuration files.

()

Source from the content-addressed store, hash-verified

44
45// NewParser creates a new parser, ready to parse configuration files.
46func NewParser() *Parser {
47 return &Parser{
48 files: map[string]*hcl.File{},
49 }
50}
51
52// ParseHCL parses the given buffer (which is assumed to have been loaded from
53// the given filename) as a native-syntax configuration file and returns the

Callers 3

realMainFunction · 0.92
main.goFile · 0.92
main.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected