package
Version:
v0.0.0-...-b722826
Opens a new window with list of versions in this module.
Published: Mar 13, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Bytes(bytes []byte, filename string, options Options) ([]byte, []byte, error)
-
func ConvertFile(file *hcl.File, options Options) (jsonObj, lineObj, error)
-
func File(file *hcl.File, options Options) ([]byte, []byte, error)
-
func String(filename string) (map[string]interface{}, error)
-
type Options
Bytes takes the contents of an HCL file, as bytes, and converts
them into a JSON representation of the HCL file.
File takes an HCL file and converts it to its JSON representation.
type Options struct {
Simplify bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.