hcl/gohcl
Mitchell Hashimoto 38280c6c69
gohcl: add "body" struct tag to capture entire block body
Structs can specify the "body" struct tag to capture the entire block
body. This does NOT act as "remain" where leftover fields are
non-erroneous. If you want leftover fields to be allowed, a "remain"
field must ALSO be present.

This is used to capture the full block body that was decoded for the
block. This is useful if you want to ever redecode something differently
(maybe with a different EvalContext) or partially decode something but
redecode the entire value.
2020-10-22 16:56:33 -07:00
..
decode_test.go gohcl: add "body" struct tag to capture entire block body 2020-10-22 16:56:33 -07:00
decode.go gohcl: add "body" struct tag to capture entire block body 2020-10-22 16:56:33 -07:00
doc.go gohcl: add "body" struct tag to capture entire block body 2020-10-22 16:56:33 -07:00
encode_test.go Change module path to github.com/hashicorp/hcl/v2 2019-09-09 15:46:40 -07:00
encode.go Change module path to github.com/hashicorp/hcl/v2 2019-09-09 15:46:40 -07:00
schema_test.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
schema.go gohcl: add "body" struct tag to capture entire block body 2020-10-22 16:56:33 -07:00
types.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00