Helpers to parse JSON/YAML files into Golang structs
Install with go get github.com/snwfdhmp/decode
.
Import with
import "github.com/snwfdhmp/decode"
Decode YAML
var data interface{}
err := decode.YAML("config.yml", &data)
or decode JSON
var data interface{}
err := decode.JSON("config.json", &data)
Complete documentation can be found on godoc