Documentation ¶
Index ¶
- func DeepCopyMap(value interface{}) interface{}
- func IndexLastStr(str, sep string) int
- func JsonStrToStrArray(a string) string
- func Md5(req string) string
- func ObjToBool(obj interface{}, e ...*Error) bool
- func ObjToCeilFloat64(obj interface{}, e ...*Error) float64
- func ObjToCeilInt(obj interface{}, e ...*Error) int
- func ObjToCeilInt64(obj interface{}, e ...*Error) int64
- func ObjToFloat64(obj interface{}, e ...*Error) float64
- func ObjToInt(obj interface{}, e ...*Error) int
- func ObjToInt64(obj interface{}, e ...*Error) int64
- func ObjToStr(obj interface{}) string
- func ObjToTime(obj interface{}, e ...*Error) *time.Time
- func Rand(count int) int
- func RandX(small int, max int) int
- func Random() float64
- func Round(f float64, n int) float64
- func StrArrayToJsonStr(a string) string
- func StrFirstToUpper(str string) string
- func StrLd(s, t string, ignoreCase bool) int
- func StrToInt(s string) (int, error)
- func Substr(str string, start int, length int) string
- func Time2Str(t time.Time, qu ...interface{}) string
- type ContextBase
- type Error
- type Map
- func (that Map) Delete(key string)
- func (that Map) Get(key string, err ...*Error) interface{}
- func (that Map) GetBool(key string, err ...*Error) bool
- func (that Map) GetCeilFloat64(key string, err ...*Error) float64
- func (that Map) GetCeilInt(key string, err ...*Error) int
- func (that Map) GetCeilInt64(key string, err ...*Error) int64
- func (that Map) GetFloat64(key string, err ...*Error) float64
- func (that Map) GetInt(key string, err ...*Error) int
- func (that Map) GetInt64(key string, err ...*Error) int64
- func (that Map) GetMap(key string, err ...*Error) Map
- func (that Map) GetSlice(key string, err ...*Error) Slice
- func (that Map) GetString(key string, err ...*Error) string
- func (that Map) GetTime(key string, err ...*Error) *time.Time
- func (that Map) JsonToMap(jsonStr string, err ...*Error)
- func (that *Map) Pointer() *Map
- func (that Map) Put(key string, value interface{})
- func (that Map) RangeSort(callback func(k string, v interface{}) (isEnd bool))
- func (that Map) ToJsonString() string
- func (that Map) ToStruct(stct interface{})
- type Obj
- func (that *Obj) Put(data interface{})
- func (that *Obj) ToCeilFloat64(err ...*Error) float64
- func (that *Obj) ToCeilInt(err ...*Error) int
- func (that *Obj) ToCeilInt64(err ...*Error) int64
- func (that *Obj) ToFloat64(err ...Error) float64
- func (that *Obj) ToInt(err ...Error) int
- func (that *Obj) ToInt64(err ...Error) int64
- func (that *Obj) ToMap(err ...Error) Map
- func (that *Obj) ToMapArray(err ...Error) []Map
- func (that *Obj) ToObj() interface{}
- func (that *Obj) ToSlice(err ...Error) Slice
- func (that *Obj) ToStr() string
- func (that *Obj) ToTime(err ...Error) *time.Time
- type Slice
- func (that Slice) Get(key int, err ...*Error) interface{}
- func (that Slice) GetBool(key int, err ...*Error) bool
- func (that Slice) GetCeilFloat64(key int, err ...*Error) float64
- func (that Slice) GetCeilInt(key int, err ...*Error) int
- func (that Slice) GetCeilInt64(key int, err ...*Error) int64
- func (that Slice) GetFloat64(key int, err ...*Error) float64
- func (that Slice) GetInt(key int, err ...*Error) int
- func (that Slice) GetInt64(key int, err ...*Error) int64
- func (that Slice) GetMap(key int, err ...*Error) Map
- func (that Slice) GetSlice(key int, err ...*Error) Slice
- func (that Slice) GetString(key int, err ...*Error) string
- func (that Slice) GetTime(key int, err ...*Error) *time.Time
- func (that Slice) Put(key int, value interface{})
- func (that Slice) ToJsonString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexLastStr ¶
IndexLastStr 获取最后出现字符串的下标 return 找不到返回 -1
func ObjToFloat64 ¶
func ObjToInt64 ¶
Types ¶
type ContextBase ¶
type ContextBase struct {
// contains filtered or unexported fields
}
type Map ¶
type Map map[string]interface{}
hotime的常用map
func ObjToMapArray ¶
func (Map) GetCeilFloat64 ¶
获取向上取整float64
func (Map) ToJsonString ¶
type Obj ¶
type Obj struct { Data interface{} Error ContextBase }
对象封装方便取用
func (*Obj) ToCeilFloat64 ¶
ToCeilFloat64 获取向上取整float64
func (*Obj) ToMapArray ¶
type Slice ¶
type Slice []interface{}
func (Slice) GetCeilFloat64 ¶
GetCeilFloat64 获取向上取整float64
func (Slice) GetCeilInt ¶
GetCeilInt 获取向上取整Int
func (Slice) GetCeilInt64 ¶
GetCeilInt64 获取向上取整Int64
func (Slice) GetFloat64 ¶
GetFloat64 获取Float64
func (Slice) ToJsonString ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.