Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONFromYAML ¶
func YAMLFromJSON ¶
Types ¶
type Transcoder ¶
type Transcoder struct {
Indent int
// contains filtered or unexported fields
}
func New ¶
func New(w io.Writer) Transcoder
func (Transcoder) JSONFromYAML ¶
func (t Transcoder) JSONFromYAML(yamlData io.Reader) error
JSONFromYAML transcodes YAML contained in yamlData
Multiple documents are not supported.
func (Transcoder) YAMLFromJSON ¶
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.