Documentation
¶
Index ¶
- type BuilderListValue
- type BuilderMapValue
- type Decoder
- type Document
- func (d *Document) All(yield func(string, Value) bool)
- func (d *Document) CreateList(key string) (*List, error)
- func (d *Document) CreateMap(key string) (IMap, error)
- func (d *Document) Decode(out any) error
- func (d *Document) Delete(key string)
- func (d *Document) Encode(inp any) error
- func (m *Document) Get(key string) Value
- func (d *Document) GetKind(key string) KindValue
- func (d *Document) GetList(key string) (*List, error)
- func (d *Document) GetMap(key string) (IMap, error)
- func (d *Document) Has(key string) bool
- func (d *Document) Keys() []string
- func (d *Document) Kind() KindValue
- func (d *Document) Len() int
- func (d *Document) ToList() (*List, error)
- func (d *Document) ToMap() (IMap, error)
- func (d *Document) ToString() (*String, error)
- type Encoder
- type IMap
- type KindValue
- type List
- func (d *List) All(yield func(int, Value) bool)
- func (l *List) AppendNewList() *List
- func (l *List) AppendNewMap() *Map
- func (l *List) AppendString(value string)
- func (l *List) Delete(index int)
- func (l *List) DeleteFirst()
- func (l *List) DeleteLast()
- func (l *List) Get(i int) Value
- func (l *List) GetKind(index int) (KindValue, error)
- func (l *List) GetKindFirst() (KindValue, error)
- func (l *List) GetKindLast() (KindValue, error)
- func (l *List) GetList(index int) (*List, error)
- func (l *List) GetListFirst() (*List, error)
- func (l *List) GetListLast() (*List, error)
- func (l *List) GetMap(index int) (*Map, error)
- func (l *List) GetMapFirst() (*Map, error)
- func (l *List) GetMapLast() (*Map, error)
- func (l *List) GetString(index int) (string, error)
- func (l *List) GetStringFirst() (string, error)
- func (l *List) GetStringLast() (string, error)
- func (l *List) InsertNewList(index int) (*List, error)
- func (l *List) InsertNewMap(index int) (*Map, error)
- func (l *List) InsertString(index int, value string) error
- func (l *List) Kind() KindValue
- func (l *List) Len() int
- func (l *List) PrependNewList() *List
- func (l *List) PrependNewMap() *Map
- func (l *List) PrependString(value string)
- func (l *List) SetString(index int, value string) error
- func (l *List) SetStringEnd(value string) error
- func (l *List) SetStringStart(value string) error
- func (l *List) ToList() (*List, error)
- func (*List) ToMap() (IMap, error)
- func (*List) ToString() (*String, error)
- type Map
- func (m *Map) All(yield func(string, Value) bool)
- func (m *Map) CreateList(key string) (*List, error)
- func (m *Map) CreateMap(key string) (IMap, error)
- func (m *Map) Delete(key string)
- func (m *Map) Get(key string) Value
- func (m *Map) GetKind(key string) KindValue
- func (m *Map) GetList(key string) (*List, error)
- func (m *Map) GetMap(key string) (IMap, error)
- func (m *Map) Has(key string) bool
- func (m *Map) Keys() []string
- func (m *Map) Kind() KindValue
- func (m *Map) Len() int
- func (*Map) ToList() (*List, error)
- func (m *Map) ToMap() (IMap, error)
- func (*Map) ToString() (*String, error)
- type String
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuilderListValue ¶
type BuilderListValue struct {
// contains filtered or unexported fields
}
func (*BuilderListValue) Kind ¶
func (c *BuilderListValue) Kind() KindValue
func (*BuilderListValue) Len ¶
func (c *BuilderListValue) Len() int
func (*BuilderListValue) ToList ¶
func (c *BuilderListValue) ToList() (*List, error)
func (*BuilderListValue) ToMap ¶
func (c *BuilderListValue) ToMap() (IMap, error)
func (*BuilderListValue) ToString ¶
func (c *BuilderListValue) ToString() (*String, error)
type BuilderMapValue ¶
type BuilderMapValue struct {
// contains filtered or unexported fields
}
func (*BuilderMapValue) Kind ¶
func (c *BuilderMapValue) Kind() KindValue
func (*BuilderMapValue) Len ¶
func (c *BuilderMapValue) Len() int
func (*BuilderMapValue) ToList ¶
func (c *BuilderMapValue) ToList() (*List, error)
func (*BuilderMapValue) ToMap ¶
func (c *BuilderMapValue) ToMap() (IMap, error)
func (*BuilderMapValue) ToString ¶
func (c *BuilderMapValue) ToString() (*String, error)
type IMap ¶
type IMap interface {
Value
CreateList(key string) (*List, error)
CreateMap(key string) (IMap, error)
Delete(key string)
GetKind(key string) KindValue
GetList(key string) (*List, error)
GetMap(key string) (IMap, error)
Has(key string) bool
Get(key string) Value
Keys() []string
All(yield func(string, Value) bool)
}
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) AppendNewList ¶
func (*List) AppendNewMap ¶
func (*List) AppendString ¶
func (*List) DeleteFirst ¶
func (l *List) DeleteFirst()
func (*List) DeleteLast ¶
func (l *List) DeleteLast()
func (*List) GetKindFirst ¶
func (*List) GetKindLast ¶
func (*List) GetListFirst ¶
func (*List) GetListLast ¶
func (*List) GetMapFirst ¶
func (*List) GetMapLast ¶
func (*List) GetStringFirst ¶
func (*List) GetStringLast ¶
func (*List) PrependNewList ¶
func (*List) PrependNewMap ¶
func (*List) PrependString ¶
func (*List) SetStringEnd ¶
func (*List) SetStringStart ¶
Click to show internal directories.
Click to hide internal directories.