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 *yaml.Node) (any, any, error)
- func DecodeNode(node *yaml.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 ¶ added in v1.2.0
func IsSimpleKey ¶ added in v1.3.6
func WrapWithDecodeError ¶ added in v1.3.0
Types ¶
type DecodeError ¶ added in v1.3.0
func NewDecodeError ¶ added in v1.3.0
func NewDecodeError(message string, line int, column int) *DecodeError
func NewDecodeErrorFor ¶ added in v1.3.0
func NewDecodeErrorFor(message string, node *yaml.Node) *DecodeError
func NewDuplicateKeyErrorFor ¶ added in v1.3.0
func NewDuplicateKeyErrorFor(key any, node *yaml.Node) *DecodeError
func (*DecodeError) Error ¶ added in v1.3.0
func (self *DecodeError) Error() string
(error interface)
type YAMLKey ¶ added in v1.1.0
func NewYAMLKey ¶ added in v1.1.0
func (*YAMLKey) MarshalYAML ¶ added in v1.1.0
yaml.Marshaler interface
Directories
¶
| Path | Synopsis |
|---|---|
|
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).
|
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). |
Click to show internal directories.
Click to hide internal directories.