Documentation ¶
Index ¶
- Variables
- func Load(filename string) (result interface{}, err error)
- func Marshal(value interface{}) ([]byte, error)
- func MarshalIndent(value interface{}, prefix, indent string) (result []byte, err error)
- func MarshalInternal(value interface{}) (result []byte, err error)
- func MarshalTFVars(value interface{}) ([]byte, error)
- func MarshalTFVarsIndent(value interface{}, prefix, indent string) (result []byte, err error)
- func SingleContext(context ...interface{}) interface{}
- func Unmarshal(bs []byte, out interface{}) (err error)
- type Dictionary
- type List
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Decode = hcl.Decode DecodeObject = hcl.DecodeObject Parse = hcl.Parse ParseBytes = hcl.ParseBytes ParseString = hcl.ParseString )
Expose hcl public objects
View Source
var DictionaryHelper collections.IDictionaryHelper = hclDictHelper
DictionaryHelper gives public access to the basic dictionary functions
View Source
var GenericListHelper collections.IListHelper = hclListHelper
GenericListHelper gives public access to the basic list functions
Functions ¶
func MarshalIndent ¶
MarshalIndent serialize values to hcl format with indentation
func MarshalInternal ¶
MarshalInternal serialize values to hcl format for result used in outer hcl struct
func MarshalTFVars ¶
MarshalTFVars serialize values to hcl format (without hcl map format)
func MarshalTFVarsIndent ¶
MarshalTFVarsIndent serialize values to hcl format with indentation (without hcl map format)
func SingleContext ¶
func SingleContext(context ...interface{}) interface{}
SingleContext converts array of 1 to single object otherwise, let the context unchanged
Types ¶
Click to show internal directories.
Click to hide internal directories.