hcl/hclpack
Martin Atkins dcefc5ca24 hclpack: Body can now unmarshal from JSON
This allows us to round-trip Body to JSON and back without any loss as
long as the expression source codes are always valid UTF-8, and we require
that during expression parsing anyway so that is a fine restriction.

The JSON encoding is a little noisy to read due to the extra annotations
required to be lossless (including source ranges) but still relatively
compact due to the base64-VLQ encoding of the source location information.
2018-11-11 09:22:08 -08:00
..
didyoumean.go hclpack: New package for wire representations of hcl bodies 2018-11-10 09:36:26 -08:00
doc.go hclpack: New package for wire representations of hcl bodies 2018-11-10 09:36:26 -08:00
example_test.go hclpack: Implement JSON marshaling (but not unmarshaling, yet) 2018-11-11 03:25:19 +00:00
expression_test.go hclpack: New package for wire representations of hcl bodies 2018-11-10 09:36:26 -08:00
expression.go hclpack: Implement UnwrapExpression for our expressions 2018-11-11 08:34:44 -08:00
exprsourcetype_string.go hclpack: New package for wire representations of hcl bodies 2018-11-10 09:36:26 -08:00
json_marshal_test.go hclpack: Body can now unmarshal from JSON 2018-11-11 09:22:08 -08:00
json_marshal.go hclpack: Body can now unmarshal from JSON 2018-11-11 09:22:08 -08:00
pack_native_test.go hclpack: PackNativeFile to get a packed version of a native syntax file 2018-11-11 00:40:31 +00:00
pack_native.go hclpack: PackNativeFile to get a packed version of a native syntax file 2018-11-11 00:40:31 +00:00
positions_packed.go hclpack: Body can now unmarshal from JSON 2018-11-11 09:22:08 -08:00
structure_test.go hclpack: New package for wire representations of hcl bodies 2018-11-10 09:36:26 -08:00
structure.go hclpack: Implement JSON marshaling (but not unmarshaling, yet) 2018-11-11 03:25:19 +00:00
vlq.go hclpack: Body can now unmarshal from JSON 2018-11-11 09:22:08 -08:00