config: github.com/gookit/config/hcl Index | Files

package hcl

import "github.com/gookit/config/hcl"

Package hcl is driver use HCL format content as config source

about HCL, please see https://github.com/hashicorp/hcl

Index

Package Files

hcl.go

Variables

var Decoder config.Decoder = hcl.Unmarshal

Decoder the hcl content decoder

var Driver = &hclDriver{config.Hcl}

Driver instance for hcl

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

Encoder the hcl content encoder

Package hcl imports 3 packages (graph). Updated 2019-06-09. Refresh now. Tools for package owners.