This is a straightforward way to get a hclpack.Body in the common case where the input is already native syntax source code. Since the native syntax is unambiguous about structure, the whole structure can be packed in a single pass with no further information. |
||
---|---|---|
.. | ||
didyoumean.go | ||
doc.go | ||
expression_test.go | ||
expression.go | ||
exprsourcetype_string.go | ||
json_marshal.go | ||
pack_native_test.go | ||
pack_native.go | ||
positions_packed.go | ||
structure_test.go | ||
structure.go |