elvuel / formato

Simple format converter for json, yaml, toml.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

formato

Simple format converter for json, yaml, toml.

Moved from confandrea utilities.

Installation

$ go get github.com/elvuel/formato

Usage

//...
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)
}
//...

License

MIT

About

Simple format converter for json, yaml, toml.


Languages

Language:Go 100.0%