Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONFromYAML ¶ added in v0.1.0
func YAMLFromJSON ¶ added in v0.1.0
Types ¶
type Transcoder ¶ added in v0.1.0
type Transcoder struct { Indent int // contains filtered or unexported fields }
func New ¶ added in v0.1.0
func New(w io.Writer) Transcoder
func (Transcoder) JSONFromYAML ¶ added in v0.1.0
func (t Transcoder) JSONFromYAML(yamlData io.Reader) error
JSONFromYAML transcodes YAML contained in yamlData
Multiple documents are not supported.
func (Transcoder) YAMLFromJSON ¶ added in v0.1.0
func (t Transcoder) YAMLFromJSON(jsonData io.Reader) error
YAMLFromJSON transcodes JSON contained in jsonData into YAML
Transcoding multiple items are not supported. Each root record will be seperated by "---"
Click to show internal directories.
Click to hide internal directories.