Documentation
¶
Overview ¶
This Go library allows for decoding arbitrary YAML content that includes maps with complex keys into basic Go data types (strings, ints, floats, bools, maps, and slices).
For more information, see the project page:
https://github.com/tliron/yamlkeys
Index ¶
- func Clone(value any) any
- func Decode(reader io.Reader) (any, error)
- func DecodeAll(reader io.Reader) ([]any, error)
- func DecodeKeyNode(node ast.Node) (any, any, error)
- func DecodeNode(node ast.Node) (any, error)
- func DecodeString(s string) (any, error)
- func DecodeStringAll(s string) ([]any, error)
- func Equals(a any, b any) bool
- func IsSimpleKey(data any) bool
- func KeyData(data any) any
- func KeyString(data any) string
- func MapDelete(map_ Map, key any) (any, bool)
- func MapGet(map_ Map, key any) (any, bool)
- func MapMerge(to Map, from Map, override bool)
- func MapPut(map_ Map, key any, value any) (any, bool)
- func WrapWithDecodeError(err error) error
- type DecodeError
- type Key
- type Map
- type Sequence
- type YAMLKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeString ¶
func DecodeStringAll ¶
func IsSimpleKey ¶
func WrapWithDecodeError ¶
Types ¶
type DecodeError ¶
func NewDecodeError ¶
func NewDecodeError(message string, line int, column int) *DecodeError
func NewDecodeErrorFor ¶
func NewDecodeErrorFor(message string, node ast.Node) *DecodeError
func NewDuplicateKeyErrorFor ¶
func NewDuplicateKeyErrorFor(key any, node ast.Node) *DecodeError
Click to show internal directories.
Click to hide internal directories.