diff options
Diffstat (limited to 'vendor/github.com/homemade/scl/decode.go')
-rw-r--r-- | vendor/github.com/homemade/scl/decode.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/vendor/github.com/homemade/scl/decode.go b/vendor/github.com/homemade/scl/decode.go deleted file mode 100644 index cb2b49e..0000000 --- a/vendor/github.com/homemade/scl/decode.go +++ /dev/null @@ -1,21 +0,0 @@ -package scl - -import "github.com/hashicorp/hcl" - -/* -DecodeFile reads the given input file and decodes it into the structure given by `out`. -*/ -func DecodeFile(out interface{}, path string) error { - - parser, err := NewParser(NewDiskSystem()) - - if err != nil { - return err - } - - if err := parser.Parse(path); err != nil { - return err - } - - return hcl.Decode(out, parser.String()) -} |