NewParser creates a new parser, ready to parse configuration files.
()
| 44 | |
| 45 | // NewParser creates a new parser, ready to parse configuration files. |
| 46 | func 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 |