yamlutil

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONToYAML

func JSONToYAML(data []byte) ([]byte, error)

JSONToYAML converts JSON to YAML.

func Marshal

func Marshal(src interface{}) (interface{}, error)

Marshal returns an interface{} representation of src to be marshaled into YAML

func Unmarshal

func Unmarshal(unmarshal func(in interface{}) error, out interface{}) error

Unmarshal unmarshals in from YAML by marshaling and unmarshaling to json

func YAMLToJSON

func YAMLToJSON(data []byte) ([]byte, error)

YAMLToJSON converts YAML to JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL