Documentation ¶
Overview ¶
类型转换. 内部使用了bytes作为底层转换类型,效率很高。
Index ¶
- func Bool(i interface{}) bool
- func Bytes(i interface{}) []byte
- func Convert(i interface{}, t string, params ...interface{}) interface{}
- func Float32(i interface{}) float32
- func Float64(i interface{}) float64
- func Int(i interface{}) int
- func Int16(i interface{}) int16
- func Int32(i interface{}) int32
- func Int64(i interface{}) int64
- func Int8(i interface{}) int8
- func String(i interface{}) string
- func Strings(i interface{}) []string
- func Time(i interface{}, format ...string) time.Time
- func TimeDuration(i interface{}) time.Duration
- func Uint(i interface{}) uint
- func Uint16(i interface{}) uint16
- func Uint32(i interface{}) uint32
- func Uint64(i interface{}) uint64
- func Uint8(i interface{}) uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.