diff options
| author | Martin Atkins <mart@degeneration.co.uk> | 2017-09-11 17:29:56 -0700 |
|---|---|---|
| committer | Martin Atkins <mart@degeneration.co.uk> | 2017-09-11 17:29:56 -0700 |
| commit | bdf1e7c6e63d505dd4564aebb89f7dfd85728f81 (patch) | |
| tree | 8c83151470d23858ae127c089932fedb66f33e62 /ext | |
| parent | b8b5e0be6dbd5129c12602f5e851f088b6d8ade8 (diff) | |
gohcl: rename struct tag prefix from "zcl:" to "hcl:"
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/include/transformer_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/include/transformer_test.go b/ext/include/transformer_test.go index 99a344b..fba73fe 100644 --- a/ext/include/transformer_test.go +++ b/ext/include/transformer_test.go @@ -6,8 +6,8 @@ import ( "github.com/davecgh/go-spew/spew" "github.com/hashicorp/hcl2/gohcl" - "github.com/hashicorp/hcl2/hcltest" "github.com/hashicorp/hcl2/hcl" + "github.com/hashicorp/hcl2/hcltest" "github.com/zclconf/go-cty/cty" ) @@ -78,10 +78,10 @@ func TestTransformer(t *testing.T) { merged := transformer.TransformBody(caller) type foo struct { - From string `zcl:"from,attr"` + From string `hcl:"from,attr"` } type result struct { - Foos []foo `zcl:"foo,block"` + Foos []foo `hcl:"foo,block"` } var got result diags := gohcl.DecodeBody(merged, nil, &got) |
