package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Jul 29, 2015
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package formatter provides function to format structured data into a variety of serialisation formats
Parse takes a Go interface{} and serialises it into the format specified.
input := map[string]string{
"Hello": "world!",
}
output, _ := Format(input, "json")
fmt.Println(output)
Output:
{
"Hello": "world!"
}
Names returns a sorted list of valid options for the "format" parameter of Format
Source Files
¶
Click to show internal directories.
Click to hide internal directories.