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)
| 27 | // resulting AST can be used to perform surgical edits on the source code |
| 28 | // before turning it back into bytes again. |
| 29 | func 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. |