Simple format converter for json, yaml, toml.
Moved from confandrea
utilities.
$ go get github.com/elvuel/formato
//...
import (
"github.com/elvuel/formato"
)
func main() {
// Y2J converts YAML to JSON
formato.Y2J(input)
// J2Y converts JSON to YAML
formato.J2Y(input)
// T2J converts TOML to JSON
formato.T2J(input)
// J2T converts JSON to TOML
formato.J2T(input)
}
//...
MIT