aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/homemade/scl/decode.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2019-07-07 21:33:44 +0100
committerNiall Sheridan <nsheridan@gmail.com>2019-07-07 21:33:44 +0100
commit8c12c6939aab9106db14ec2d11d983bc5b29fb2c (patch)
treef9dc8a7d167c6355e47a65c52d4eb7b9ea03e6c8 /vendor/github.com/homemade/scl/decode.go
parent0bd454cc448b812da6c693b451d86ff4cadbb6b2 (diff)
Switch to modules
Diffstat (limited to 'vendor/github.com/homemade/scl/decode.go')
-rw-r--r--vendor/github.com/homemade/scl/decode.go21
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())
-}