The comment at the top of the hclparse package references hcl.SimpleParse, hcl.SimpleParseFile, and gohcl.SimpleDecode:
|
// The main HCL package also includes SimpleParse and SimpleParseFile which |
|
// can be a simpler interface for the common case where an application just |
|
// needs to parse a single file. The gohcl package simplifies that further |
|
// in its SimpleDecode function, which combines hcl.SimpleParse with decoding |
|
// into Go struct values |
However, I was unable to find reference to any of these, e.g. the only reference to SimpleParse in this repo is in the hclparse package comment:
https://github.com/search?q=repo%3Ahashicorp%2Fhcl%20SimpleParse&type=code
I'm guessing this may be a holdover from hcl/v1 and isn't applicable to hcl/v2.
Should the comment either be updated to point at the correct resources or removed?
The comment at the top of the
hclparsepackage referenceshcl.SimpleParse,hcl.SimpleParseFile, andgohcl.SimpleDecode:hcl/hclparse/parser.go
Lines 7 to 11 in 2efc266
However, I was unable to find reference to any of these, e.g. the only reference to
SimpleParsein this repo is in thehclparsepackage comment:https://github.com/search?q=repo%3Ahashicorp%2Fhcl%20SimpleParse&type=code
I'm guessing this may be a holdover from
hcl/v1and isn't applicable tohcl/v2.Should the comment either be updated to point at the correct resources or removed?