func NewHCLFromFile(path string) *HCL {
	return NewHCL(func() (io.Reader, error) {
		return os.Open(path)
	})
}
NewHCLFromFile returns an instance of the HCL checker. It reads its
data from a file (file content can be HCL or JSON) which its location has been specified through the path
parameter
package configure
import (
	"bytes"
	"errors"
	"fmt"
	"io"
	"os"
	"github.com/hashicorp/hcl"
)
func NewHCL(gen func() (io.Reader, error)) *HCL {
	return &HCL{
		gen: gen,
	}
}