hclv2

package
v2.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Decoder config.Decoder = func(blob []byte, v interface{}) (err error) {

	file, diags := hclsyntax.ParseConfig(blob, "hcl2/config.hcl", hcl.Pos{Line: 0, Column: 0})

	if len(diags) != 0 {
		return diags
	}

	return gohcl.DecodeBody(file.Body, nil, v)
}

Decoder the hcl content decoder

View Source
var Driver = &hclDriver{config.Hcl}

Driver instance for hcl

View Source
var Encoder config.Encoder = func(ptr interface{}) (out []byte, err error) {
	err = errors.New("HCLv2: is not support encode data to HCL")
	return
}

Encoder the hcl content encoder

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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