Documentation
¶
Index ¶
- type Error
- type Wrapper
- func NewArray(l int) *Wrapper
- func NewBool(b bool) *Wrapper
- func NewDictionary() *Wrapper
- func NewDictionaryFromString(s string) *Wrapper
- func NewFloat(f float64) *Wrapper
- func NewInt(i int) *Wrapper
- func NewInt64(i int64) *Wrapper
- func NewNil() *Wrapper
- func NewString(s string) *Wrapper
- func NewWrapper(i interface{}) (rd *Wrapper)
- func (w *Wrapper) AtIndex(i int) *Wrapper
- func (w *Wrapper) AtKey(s string) *Wrapper
- func (w *Wrapper) AtPath(path string) (ret *Wrapper)
- func (w *Wrapper) Clear()
- func (w *Wrapper) Copy() (*Wrapper, error)
- func (w *Wrapper) Error() (e error)
- func (w *Wrapper) GetBool() bool
- func (w *Wrapper) GetDataOrNil() interface{}
- func (w *Wrapper) GetFloat() float64
- func (w *Wrapper) GetInt() int
- func (w *Wrapper) GetInt64() int64
- func (w *Wrapper) GetJsonPrettyString() (string, error)
- func (w *Wrapper) GetJsonString() (string, error)
- func (w *Wrapper) GetString() string
- func (w *Wrapper) IsBool() bool
- func (w *Wrapper) IsEmpty() bool
- func (w *Wrapper) IsExist(path string) bool
- func (w *Wrapper) IsFloat() bool
- func (w *Wrapper) IsInt() bool
- func (w *Wrapper) IsOk() bool
- func (w *Wrapper) IsString() bool
- func (w *Wrapper) Keys() (v []string, err error)
- func (w *Wrapper) Len() (ret int, err error)
- func (w *Wrapper) SetIndex(i int, val *Wrapper) error
- func (w *Wrapper) SetKey(s string, val *Wrapper) error
- func (w *Wrapper) Size() (ret int, err error)
- func (w *Wrapper) ToArray() (out *Wrapper, e error)
- func (w *Wrapper) ToDictionary() (out *Wrapper, e error)
- func (w *Wrapper) ToIntArray() ([]int, error)
- func (w *Wrapper) ToStringArray() ([]string, error)
- func (w *Wrapper) TypeOf() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
func NewDictionary ¶
func NewDictionary() *Wrapper
func NewDictionaryFromString ¶
func NewWrapper ¶
func NewWrapper(i interface{}) (rd *Wrapper)
========================================================================== NEW ==========================================================================
func (*Wrapper) AtKey ¶
========================================================================== AT ==========================================================================
func (*Wrapper) Clear ¶
func (w *Wrapper) Clear()
========================================================================== CLEAR ==========================================================================
func (*Wrapper) Copy ¶
========================================================================== COPY ==========================================================================
func (*Wrapper) GetDataOrNil ¶
func (w *Wrapper) GetDataOrNil() interface{}
func (*Wrapper) GetJsonPrettyString ¶
func (*Wrapper) GetJsonString ¶
========================================================================== GET ==========================================================================
func (*Wrapper) IsOk ¶
========================================================================== IS ==========================================================================
func (*Wrapper) Keys ¶
========================================================================== KEYS ==========================================================================
func (*Wrapper) Len ¶
========================================================================== LENGTH ==========================================================================
func (*Wrapper) SetKey ¶
========================================================================== SET ==========================================================================
func (*Wrapper) ToDictionary ¶
========================================================================== TO ==========================================================================