Documentation
¶
Index ¶
- type DynamicJSON
- func FromFile(filepath string) (r *DynamicJSON, err error)
- func FromFolder(path string) ([]*DynamicJSON, error)
- func FromResponse(resp *http.Response, err0 error) (response *DynamicJSON, err error)
- func FromResponse200(resp *http.Response, err0 error) (response *DynamicJSON, err error)
- func NewArray() *DynamicJSON
- func NewMap() *DynamicJSON
- func Parse(data []byte) (*DynamicJSON, error)
- func (self *DynamicJSON) Append(v any)
- func (self *DynamicJSON) Array(name string) *DynamicJSON
- func (self *DynamicJSON) ArrayI(i int) *DynamicJSON
- func (self *DynamicJSON) Clear()
- func (self *DynamicJSON) Clone() *DynamicJSON
- func (self *DynamicJSON) Delete(path string) error
- func (self *DynamicJSON) Each(path string) iter.Seq[*DynamicJSON]
- func (self *DynamicJSON) EachPair(path string) iter.Seq2[string, any]
- func (self *DynamicJSON) Fetch(path string) (any, bool)
- func (self *DynamicJSON) Freeze()
- func (self *DynamicJSON) Get(path string) any
- func (self *DynamicJSON) GetAnySlice(path string) []any
- func (self *DynamicJSON) GetBool(path string, defaultValue bool) bool
- func (self *DynamicJSON) GetFloat(path string, defaultValue float64) float64
- func (self *DynamicJSON) GetI(i int) any
- func (self *DynamicJSON) GetInt(path string, defaultValue int) int
- func (self *DynamicJSON) GetIntsSlice(path string) []int
- func (self *DynamicJSON) GetSlice(path string) []*DynamicJSON
- func (self *DynamicJSON) GetStr(path string) string
- func (self *DynamicJSON) GetString(path string, defaultValue string) string
- func (self *DynamicJSON) GetStringsSlice(path string) []string
- func (self *DynamicJSON) GetTime(path string) time.Time
- func (self *DynamicJSON) Has(path string) bool
- func (self *DynamicJSON) IsArray() bool
- func (self *DynamicJSON) IsEqual(o *DynamicJSON) bool
- func (self *DynamicJSON) IsEqualAsString(o *DynamicJSON) bool
- func (self *DynamicJSON) IsEqualCheck(o *DynamicJSON) bool
- func (self *DynamicJSON) IsFrozen() bool
- func (self *DynamicJSON) Iterate(cb func(key string, value interface{}) bool)
- func (self *DynamicJSON) JSON() []byte
- func (self *DynamicJSON) JSONLine() []byte
- func (self *DynamicJSON) Keys() []string
- func (self *DynamicJSON) Len() int
- func (self *DynamicJSON) Map(name string) *DynamicJSON
- func (self *DynamicJSON) MapI(i int) *DynamicJSON
- func (self *DynamicJSON) Nested(path string) *DynamicJSON
- func (self *DynamicJSON) NestedI(i int) *DynamicJSON
- func (self *DynamicJSON) Set(path string, value interface{})
- func (self *DynamicJSON) SetI(i int, value interface{}) error
- func (self *DynamicJSON) Visit(cb func(path string, value interface{}))
- type StrMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicJSON ¶
type DynamicJSON struct {
// contains filtered or unexported fields
}
func FromFile ¶
func FromFile(filepath string) (r *DynamicJSON, err error)
func FromFolder ¶
func FromFolder(path string) ([]*DynamicJSON, error)
func FromResponse ¶
func FromResponse(resp *http.Response, err0 error) (response *DynamicJSON, err error)
func FromResponse200 ¶
func FromResponse200(resp *http.Response, err0 error) (response *DynamicJSON, err error)
func NewArray ¶
func NewArray() *DynamicJSON
func NewMap ¶
func NewMap() *DynamicJSON
func Parse ¶
func Parse(data []byte) (*DynamicJSON, error)
func (*DynamicJSON) Append ¶
func (self *DynamicJSON) Append(v any)
func (*DynamicJSON) Array ¶
func (self *DynamicJSON) Array(name string) *DynamicJSON
func (*DynamicJSON) ArrayI ¶
func (self *DynamicJSON) ArrayI(i int) *DynamicJSON
func (*DynamicJSON) Clear ¶
func (self *DynamicJSON) Clear()
func (*DynamicJSON) Clone ¶
func (self *DynamicJSON) Clone() *DynamicJSON
func (*DynamicJSON) Delete ¶
func (self *DynamicJSON) Delete(path string) error
func (*DynamicJSON) Each ¶
func (self *DynamicJSON) Each(path string) iter.Seq[*DynamicJSON]
func (*DynamicJSON) Freeze ¶
func (self *DynamicJSON) Freeze()
func (*DynamicJSON) Get ¶
func (self *DynamicJSON) Get(path string) any
func (*DynamicJSON) GetAnySlice ¶
func (self *DynamicJSON) GetAnySlice(path string) []any
func (*DynamicJSON) GetFloat ¶
func (self *DynamicJSON) GetFloat(path string, defaultValue float64) float64
func (*DynamicJSON) GetI ¶
func (self *DynamicJSON) GetI(i int) any
func (*DynamicJSON) GetIntsSlice ¶
func (self *DynamicJSON) GetIntsSlice(path string) []int
func (*DynamicJSON) GetSlice ¶
func (self *DynamicJSON) GetSlice(path string) []*DynamicJSON
func (*DynamicJSON) GetStr ¶
func (self *DynamicJSON) GetStr(path string) string
func (*DynamicJSON) GetString ¶
func (self *DynamicJSON) GetString(path string, defaultValue string) string
func (*DynamicJSON) GetStringsSlice ¶
func (self *DynamicJSON) GetStringsSlice(path string) []string
func (*DynamicJSON) Has ¶
func (self *DynamicJSON) Has(path string) bool
func (*DynamicJSON) IsArray ¶
func (self *DynamicJSON) IsArray() bool
func (*DynamicJSON) IsEqual ¶
func (self *DynamicJSON) IsEqual(o *DynamicJSON) bool
func (*DynamicJSON) IsEqualAsString ¶
func (self *DynamicJSON) IsEqualAsString(o *DynamicJSON) bool
func (*DynamicJSON) IsEqualCheck ¶
func (self *DynamicJSON) IsEqualCheck(o *DynamicJSON) bool
func (*DynamicJSON) IsFrozen ¶
func (self *DynamicJSON) IsFrozen() bool
func (*DynamicJSON) Iterate ¶
func (self *DynamicJSON) Iterate(cb func(key string, value interface{}) bool)
func (*DynamicJSON) JSON ¶
func (self *DynamicJSON) JSON() []byte
func (*DynamicJSON) JSONLine ¶
func (self *DynamicJSON) JSONLine() []byte
func (*DynamicJSON) Keys ¶
func (self *DynamicJSON) Keys() []string
func (*DynamicJSON) Len ¶
func (self *DynamicJSON) Len() int
func (*DynamicJSON) Map ¶
func (self *DynamicJSON) Map(name string) *DynamicJSON
func (*DynamicJSON) MapI ¶
func (self *DynamicJSON) MapI(i int) *DynamicJSON
func (*DynamicJSON) Nested ¶
func (self *DynamicJSON) Nested(path string) *DynamicJSON
func (*DynamicJSON) NestedI ¶
func (self *DynamicJSON) NestedI(i int) *DynamicJSON
func (*DynamicJSON) Set ¶
func (self *DynamicJSON) Set(path string, value interface{})
func (*DynamicJSON) SetI ¶
func (self *DynamicJSON) SetI(i int, value interface{}) error
func (*DynamicJSON) Visit ¶
func (self *DynamicJSON) Visit(cb func(path string, value interface{}))
self must not be changed
Click to show internal directories.
Click to hide internal directories.