why

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 6 Imported by: 0

README

why is a yaml/json conversion library

why encodes yaml into json and vice versa while preserving the order and structure of the data.

  • aliases are not supported.
  • comments are obviously lost
  • strings are currently placed into a single line
  • testing is incredibly lacking. I'll get around to it.

Open sourcing it incase anyone needs it. Please feel free to open issues or contribute if you feel so inclined.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONToYAML

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

func YAMLToJSON

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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