diff options
| author | Martin Atkins <mart@degeneration.co.uk> | 2017-09-11 16:00:31 -0700 |
|---|---|---|
| committer | Martin Atkins <mart@degeneration.co.uk> | 2017-09-11 16:00:31 -0700 |
| commit | 0dc3a6015c39cfa338716442c8fd53848ad06184 (patch) | |
| tree | c7bbe9a7c53b0fe6be275b1abcbace500eec573b /ext/userfunc | |
| parent | 386f7134f17b55c69b53482eb9223b2163fb8627 (diff) | |
Rename the ancillary packages from "zcl" to "hcl".
The main "zcl" package requires a bit more care because of how many
callers it has and because of its two subpackages, so we'll take care
of that one separately.
Diffstat (limited to 'ext/userfunc')
| -rw-r--r-- | ext/userfunc/decode.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/userfunc/decode.go b/ext/userfunc/decode.go index 15b9e53..8e477c5 100644 --- a/ext/userfunc/decode.go +++ b/ext/userfunc/decode.go @@ -1,7 +1,7 @@ package userfunc import ( - "github.com/hashicorp/hcl2/gozcl" + "github.com/hashicorp/hcl2/gohcl" "github.com/hashicorp/hcl2/zcl" "github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty/function" @@ -72,13 +72,13 @@ func decodeUserFunctions(body zcl.Body, blockType string, contextFunc ContextFun var params []string var varParam string - paramsDiags := gozcl.DecodeExpression(paramsExpr, nil, ¶ms) + paramsDiags := gohcl.DecodeExpression(paramsExpr, nil, ¶ms) diags = append(diags, paramsDiags...) if paramsDiags.HasErrors() { continue } if varParamExpr != nil { - paramsDiags := gozcl.DecodeExpression(varParamExpr, nil, &varParam) + paramsDiags := gohcl.DecodeExpression(varParamExpr, nil, &varParam) diags = append(diags, paramsDiags...) if paramsDiags.HasErrors() { continue |
