From 8c12c6939aab9106db14ec2d11d983bc5b29fb2c Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Sun, 7 Jul 2019 21:33:44 +0100 Subject: Switch to modules --- vendor/github.com/homemade/scl/decode.go | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 vendor/github.com/homemade/scl/decode.go (limited to 'vendor/github.com/homemade/scl/decode.go') 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()) -} -- cgit v1.2.3