Documentation ¶
Index ¶
- func Add(a, b interface{}) interface{}
- func AddInt(a, b interface{}) int
- func Bool(v interface{}) bool
- func Div(a, b interface{}) interface{}
- func DivFloat(a, b interface{}) float64
- func Float32(v interface{}) (float32, error)
- func Float32Must(v interface{}) float32
- func Float64(v interface{}) (float64, error)
- func Float64Must(v interface{}) float64
- func Int(v interface{}) (int, error)
- func Int64(v interface{}) (int64, error)
- func Int64Must(v interface{}) int64
- func IntMust(v interface{}) int
- func IsFloat(v interface{}) bool
- func IsInt(v interface{}) bool
- func IsInteger(v interface{}) bool
- func IsNumber(v interface{}) bool
- func IsNumberStr(v interface{}) bool
- func IsNumberable(v interface{}) bool
- func IsString(v interface{}) bool
- func Mod(a, b interface{}) interface{}
- func Mul(a, b interface{}) interface{}
- func String(v interface{}) string
- func Sub(a, b interface{}) interface{}
- func Uint64(v interface{}) (uint64, error)
- type List
- func (l List) Get(i int) Value
- func (l List) IsEmpty() bool
- func (l List) IsNil() bool
- func (l List) Len() int
- func (l List) MarshalJSON() (string, error)
- func (l List) MarshalJSONMust() string
- func (l List) Sort(asc bool)
- func (l List) SortBy(less func(i, j int) bool)
- func (l List) SortByField(field string, asc bool)
- func (l List) SortByFields(sortOrders []SortOrder)
- type Map
- func (m Map) Get(key string) Value
- func (m Map) Has(key string) bool
- func (m Map) IsEmpty() bool
- func (m Map) IsNil() bool
- func (m Map) Keys() []string
- func (m Map) Len() int
- func (m Map) MarshalJSON() (string, error)
- func (m Map) MarshalJSONMust() string
- func (m Map) Struct(s interface{}) error
- func (m Map) Values() []interface{}
- type SortOrder
- type Value
- func (v Value) AsByte() byte
- func (v Value) AsFloat64() float64
- func (v Value) AsInt() int
- func (v Value) AsInt16() int16
- func (v Value) AsInt32() int32
- func (v Value) AsInt64() int64
- func (v Value) AsInt8() int8
- func (v Value) AsList() List
- func (v Value) AsMap() Map
- func (v Value) Bool() bool
- func (v Value) Byte() (byte, error)
- func (v Value) ByteMust() byte
- func (v Value) Compare(a Value) int
- func (v Value) Float32() (float32, error)
- func (v Value) Float32Must() float32
- func (v Value) Float64() (float64, error)
- func (v Value) Float64Must() float64
- func (v Value) Int() (int, error)
- func (v Value) Int16() (int16, error)
- func (v Value) Int16Must() int16
- func (v Value) Int32() (int32, error)
- func (v Value) Int32Must() int32
- func (v Value) Int64() (int64, error)
- func (v Value) Int64Must() int64
- func (v Value) Int8() (int8, error)
- func (v Value) Int8Must() int8
- func (v Value) IntMust() int
- func (v Value) IsArray() bool
- func (v Value) IsFloat() bool
- func (v Value) IsInteger() bool
- func (v Value) IsMap() bool
- func (v Value) IsNumber() bool
- func (v Value) IsNumberStr() bool
- func (v Value) IsNumberable() bool
- func (v Value) IsPtr() bool
- func (v Value) IsSlice() bool
- func (v Value) IsString() bool
- func (v Value) IsStruct() bool
- func (v Value) MarshalJSON() (string, error)
- func (v Value) MarshalJSONMust() string
- func (v Value) String() string
- func (v Value) Uint() (uint, error)
- func (v Value) Uint16() (uint16, error)
- func (v Value) Uint16Must() uint16
- func (v Value) Uint32() (uint32, error)
- func (v Value) Uint32Must() uint32
- func (v Value) Uint64() (uint64, error)
- func (v Value) Uint64Must() uint64
- func (v Value) Uint8() (uint8, error)
- func (v Value) Uint8Must() uint8
- func (v Value) UintMust() uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float32Must ¶
func Float32Must(v interface{}) float32
func Float64Must ¶
func Float64Must(v interface{}) float64
func IsNumberStr ¶ added in v1.0.9
func IsNumberStr(v interface{}) bool
func IsNumberable ¶ added in v1.0.9
func IsNumberable(v interface{}) bool
Types ¶
type List ¶ added in v1.0.9
type List []interface{}
func (List) MarshalJSON ¶ added in v1.0.9
func (List) MarshalJSONMust ¶ added in v1.0.9
func (List) SortByField ¶ added in v1.0.9
func (List) SortByFields ¶ added in v1.0.9
type Map ¶ added in v1.0.9
type Map map[string]interface{}
func (Map) MarshalJSON ¶ added in v1.0.9
func (Map) MarshalJSONMust ¶ added in v1.0.9
type Value ¶ added in v1.0.8
type Value struct {
V interface{}
}
func UnmarshalJSON ¶ added in v1.0.9
func UnmarshalJSONMust ¶ added in v1.0.9
func (Value) Float32Must ¶ added in v1.0.8
func (Value) Float64Must ¶ added in v1.0.8
func (Value) IsNumberStr ¶ added in v1.0.9
func (Value) IsNumberable ¶ added in v1.0.9
func (Value) MarshalJSON ¶ added in v1.0.9
func (Value) MarshalJSONMust ¶ added in v1.0.9
func (Value) Uint16Must ¶ added in v1.0.8
func (Value) Uint32Must ¶ added in v1.0.8
func (Value) Uint64Must ¶ added in v1.0.8
Click to show internal directories.
Click to hide internal directories.