Documentation ¶
Overview ¶
@Author zhanglingyu
@Author zhanglingyu
Index ¶
- func ToBool(i interface{}, def ...bool) bool
- func ToBoolE(i interface{}, def ...bool) (bool, error)
- func ToFloat32(i interface{}, def ...float32) float32
- func ToFloat64(i interface{}, def ...float64) float64
- func ToInt(i interface{}, def ...int) int
- func ToInt16(i interface{}, def ...int16) int16
- func ToInt16E(i interface{}, def ...int16) (int16, error)
- func ToInt32(i interface{}, def ...int32) int32
- func ToInt32E(i interface{}, def ...int32) (int32, error)
- func ToInt64(i interface{}, def ...int64) int64
- func ToInt64E(i interface{}, def ...int64) (int64, error)
- func ToInt8(i interface{}, def ...int8) int8
- func ToInt8E(i interface{}, def ...int8) (int8, error)
- func ToIntE(i interface{}, def ...int) (int, error)
- func ToString(i interface{}, def ...string) string
- func ToStringE(i interface{}, def ...string) (string, error)
- func ToUint(i interface{}, def ...uint) uint
- func ToUint16(i interface{}, def ...uint16) uint16
- func ToUint16E(i interface{}, def ...uint16) (uint16, error)
- func ToUint32(i interface{}, def ...uint32) uint32
- func ToUint32E(i interface{}, def ...uint32) (uint32, error)
- func ToUint64(i interface{}, def ...uint64) uint64
- func ToUint64E(i interface{}, def ...uint64) (uint64, error)
- func ToUint8(i interface{}, def ...uint8) uint8
- func ToUint8E(i interface{}, def ...uint8) (uint8, error)
- func ToUintE(i interface{}, def ...uint) (uint, error)
- func Tofloat32E(i interface{}, def ...float32) (float32, error)
- func Tofloat64E(i interface{}, def ...float64) (float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToBoolE ¶
ToBoolE @Description: cast i interfalce to bool type. @param i @return bool @return error
func Tofloat32E ¶
ToFloat32E @Description: interface to float32. @param i @return float32 @return error
func Tofloat64E ¶
Tofloat64E @Description: interface to float64. @param i @return float64 @return error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.