From bdf1e7c6e63d505dd4564aebb89f7dfd85728f81 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Mon, 11 Sep 2017 17:29:56 -0700 Subject: gohcl: rename struct tag prefix from "zcl:" to "hcl:" --- ext/include/transformer_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext') 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) -- cgit v1.2.3