convert

package
v0.0.0-...-b722826 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(bytes []byte, filename string, options Options) ([]byte, []byte, error)

Bytes takes the contents of an HCL file, as bytes, and converts them into a JSON representation of the HCL file.

func ConvertFile

func ConvertFile(file *hcl.File, options Options) (jsonObj, lineObj, error)

func File

func File(file *hcl.File, options Options) ([]byte, []byte, error)

File takes an HCL file and converts it to its JSON representation.

func String

func String(filename string) (map[string]interface{}, error)

Types

type Options

type Options struct {
	Simplify bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL