Documentation ¶
Index ¶
- Constants
- type Entry
- type EntryHandler
- type EntryType
- type Map
- func (m *Map) Get(key string) any
- func (m *Map) HandleAndSet(key string, typ EntryType, handler EntryHandler) error
- func (m *Map) Range(f func(key string, typ EntryType, value any) bool) bool
- func (m *Map) Remove(key string)
- func (m *Map) Set(key string, typ EntryType, value any)
- func (m *Map) SetEntry(ket string, entry Entry)
- type YAMLMapHandler
- type ZeroEntryType
Constants ¶
View Source
const ( YAMLNullTag = "!!null" YAMLBoolTag = "!!bool" YAMLStrTag = "!!str" YAMLIntTag = "!!int" YAMLFloatTag = "!!float" YAMLTimestampTag = "!!timestamp" YAMLSeqTag = "!!seq" YAMLMapTag = "!!map" YAMLBinaryTag = "!!binary" YAMLMergeTag = "!!merge" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
func NewEntryWithHandler ¶
func NewEntryWithHandler(typ EntryType, handler EntryHandler) (Entry, error)
func (*Entry) Handle ¶
func (e *Entry) Handle(handler EntryHandler) error
type EntryHandler ¶
func YAMLHandler ¶
func YAMLHandler(value *yaml.Node) EntryHandler
type EntryType ¶
func NewZeroEntryType ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) HandleAndSet ¶
func (m *Map) HandleAndSet(key string, typ EntryType, handler EntryHandler) error
type YAMLMapHandler ¶
func (YAMLMapHandler) UnmarshalYAML ¶
func (h YAMLMapHandler) UnmarshalYAML(value *yaml.Node) error
type ZeroEntryType ¶
func (ZeroEntryType[V]) Check ¶
func (t ZeroEntryType[V]) Check(value any) error
func (ZeroEntryType[V]) Zero ¶
func (t ZeroEntryType[V]) Zero() any
Click to show internal directories.
Click to hide internal directories.