Documentation ¶
Overview ¶
Package variant provide cast functions to convert between string and number types, these functions will never panic nor raise error.
Index ¶
- func Bool(x interface{}) bool
- func Complex128(x interface{}) (ret complex128)
- func Complex64(x interface{}) (ret complex64)
- func Float32(x interface{}) float32
- func Float64(x interface{}) float64
- func Int(x interface{}) (ret int)
- func Int16(x interface{}) int16
- func Int32(x interface{}) int32
- func Int64(x interface{}) int64
- func Int8(x interface{}) int8
- func String(x interface{}) string
- func Uint(x interface{}) (ret uint)
- func Uint16(x interface{}) uint16
- func Uint32(x interface{}) uint32
- func Uint64(x interface{}) uint64
- func Uint8(x interface{}) uint8
- func Uintptr(x interface{}) (ret uintptr)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Complex128 ¶
func Complex128(x interface{}) (ret complex128)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.