Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 493 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 493 Bytes

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