hcl/gohcl
Martin Atkins 1b9738a196 gohcl: EncodeIntoBody and EncodeAsBlock functions
These are wrappers around the lower-level hclwrite package that are able
to reverse a subset of the behavior of the Decode functions to populate
an hclwrite DOM.

They are not fully symmetrical with DecodeBody because that function can
leave certain parts of the configuration in its opaque form for later
decoding, and these encode functions don't have enough information to
repack that abstract/opaque form into new source code.

In practice we expect that callers using complex techniques like partial
decoding will also use more complex techniques with the hclwrite API
directly, since they will need to coordinate partial _encoding_ of data
that has been portioned off into separate structures, which gohcl is not
equipped to do itself.
2018-11-04 01:16:51 +00:00
..
decode_test.go gohcl: don't reflect.DeepEqual number values in tests 2018-02-27 07:53:20 -08:00
decode.go gohcl: Decode missing hcl.Expression as a cty Null 2017-09-20 16:23:23 -07:00
doc.go gohcl: EncodeIntoBody and EncodeAsBlock functions 2018-11-04 01:16:51 +00:00
encode_test.go gohcl: EncodeIntoBody and EncodeAsBlock functions 2018-11-04 01:16:51 +00:00
encode.go gohcl: EncodeIntoBody and EncodeAsBlock functions 2018-11-04 01:16:51 +00:00
schema_test.go gohcl: allow optional attributes to be specified via struct tag 2018-02-17 10:36:04 -08:00
schema.go gohcl: allow optional attributes to be specified via struct tag 2018-02-17 10:36:04 -08:00
types.go