Documentation ¶
Overview ¶
Package pkgyaml provides functionality for YAML.
Originally inspired by https://github.com/bronze1man/yaml2json.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseYAMLOrJSON ¶
ParseYAMLOrJSON unmarshals the given file at filePath, switching based on the file extension.
This uses the json tags on any fields, as json.Unmarshal is the unmarshalling function used.
func ToJSON ¶
func ToJSON(p []byte, opts ToJSONOptions) ([]byte, error)
ToJSON transforms an YAML input and transforms it to JSON.
Originally inspired by https://github.com/bronze1man/yaml2json.
Types ¶
Click to show internal directories.
Click to hide internal directories.