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

Function ParseConfig

hclwrite/public.go:29–31  ·  view source on GitHub ↗

ParseConfig interprets the given source bytes into a *hclwrite.File. The resulting AST can be used to perform surgical edits on the source code before turning it back into bytes again.

(src []byte, filename string, start hcl.Pos)

Source from the content-addressed store, hash-verified

27// resulting AST can be used to perform surgical edits on the source code
28// before turning it back into bytes again.
29func ParseConfig(src []byte, filename string, start hcl.Pos) (*File, hcl.Diagnostics) {
30 return parse(src, filename, start)
31}
32
33// Format takes source code and performs simple whitespace changes to transform
34// it to a canonical layout style.

Calls 1

parseFunction · 0.85