Versions in this module Expand all Collapse all v1 v1.1.1 Nov 20, 2020 v1.1.0 Sep 26, 2020 Changes in this version + func Bool(v interface{}) (bool, error) + func CleanFloat(value string) string + func Duration(v interface{}) (time.Duration, error) + func Float32(v interface{}) (float32, error) + func Float64(v interface{}) (float64, error) + func FormatFloat32(value float32, precision int) string + func FormatFloat64(value float64, precision int) string + func Int(v interface{}) (int, error) + func Int16(v interface{}) (int16, error) + func Int32(v interface{}) (int32, error) + func Int64(v interface{}) (int64, error) + func Int8(v interface{}) (int8, error) + func ParseBool(str string, defVal bool) bool + func ParseFloat32(str string, defVal float32) float32 + func ParseFloat64(str string, defVal float64) float64 + func ParseInt(str string, defVal int) int + func ParseInt16(str string, defVal int16) int16 + func ParseInt32(str string, defVal int32) int32 + func ParseInt64(str string, defVal int64) int64 + func ParseInt8(str string, defVal int8) int8 + func ParseUint(str string, defVal uint) uint + func ParseUint16(str string, defVal uint16) uint16 + func ParseUint32(str string, defVal uint32) uint32 + func ParseUint64(str string, defVal uint64) uint64 + func ParseUint8(str string, defVal uint8) uint8 + func String(v interface{}) string + func ToBool(v interface{}, defVal bool) bool + func ToDuration(v interface{}, defVal time.Duration) time.Duration + func ToFloat32(v interface{}, defVal float32) float32 + func ToFloat64(v interface{}, defVal float64) float64 + func ToInt(v interface{}, defVal int) int + func ToInt16(v interface{}, defVal int16) int16 + func ToInt32(v interface{}, defVal int32) int32 + func ToInt64(v interface{}, defVal int64) int64 + func ToInt8(v interface{}, defVal int8) int8 + func ToString(v interface{}) string + func ToUint(v interface{}, defVal uint) uint + func ToUint16(v interface{}, defVal uint16) uint16 + func ToUint32(v interface{}, defVal uint32) uint32 + func ToUint64(v interface{}, defVal uint64) uint64 + func ToUint8(v interface{}, defVal uint8) uint8 + func Uint(v interface{}) (uint, error) + func Uint16(v interface{}) (uint16, error) + func Uint32(v interface{}) (uint32, error) + func Uint64(v interface{}) (uint64, error) + func Uint8(v interface{}) (uint8, error) + type Bools []bool + func (s Bools) ToInterfaces() []interface{} + type Complex128s []complex128 + func (s Complex128s) ToInterfaces() []interface{} + type Complex64s []complex64 + func (s Complex64s) ToInterfaces() []interface{} + type Float32s []float32 + func (s Float32s) ToFloat64s() []float64 + func (s Float32s) ToInt16s() []int16 + func (s Float32s) ToInt32s() []int32 + func (s Float32s) ToInt64s() []int64 + func (s Float32s) ToInt8s() []int8 + func (s Float32s) ToInterfaces() []interface{} + func (s Float32s) ToInts() []int + func (s Float32s) ToUint16s() []uint16 + func (s Float32s) ToUint32s() []uint32 + func (s Float32s) ToUint64s() []uint64 + func (s Float32s) ToUint8s() []uint8 + func (s Float32s) ToUints() []uint + type Float64s []float64 + func (s Float64s) ToFloat32s() []float32 + func (s Float64s) ToInt16s() []int16 + func (s Float64s) ToInt32s() []int32 + func (s Float64s) ToInt64s() []int64 + func (s Float64s) ToInt8s() []int8 + func (s Float64s) ToInterfaces() []interface{} + func (s Float64s) ToInts() []int + func (s Float64s) ToUint16s() []uint16 + func (s Float64s) ToUint32s() []uint32 + func (s Float64s) ToUint64s() []uint64 + func (s Float64s) ToUint8s() []uint8 + func (s Float64s) ToUints() []uint + type Int16s []int16 + func (s Int16s) ToFloat32s() []float32 + func (s Int16s) ToFloat64s() []float64 + func (s Int16s) ToInt32s() []int32 + func (s Int16s) ToInt64s() []int64 + func (s Int16s) ToInt8s() []int8 + func (s Int16s) ToInterfaces() []interface{} + func (s Int16s) ToInts() []int + func (s Int16s) ToUint16s() []uint16 + func (s Int16s) ToUint32s() []uint32 + func (s Int16s) ToUint64s() []uint64 + func (s Int16s) ToUint8s() []uint8 + func (s Int16s) ToUints() []uint + type Int32s []int32 + func (s Int32s) ToFloat32s() []float32 + func (s Int32s) ToFloat64s() []float64 + func (s Int32s) ToInt16s() []int16 + func (s Int32s) ToInt64s() []int64 + func (s Int32s) ToInt8s() []int8 + func (s Int32s) ToInterfaces() []interface{} + func (s Int32s) ToInts() []int + func (s Int32s) ToUint16s() []uint16 + func (s Int32s) ToUint32s() []uint32 + func (s Int32s) ToUint64s() []uint64 + func (s Int32s) ToUint8s() []uint8 + func (s Int32s) ToUints() []uint + type Int64s []int64 + func (s Int64s) ToFloat32s() []float32 + func (s Int64s) ToFloat64s() []float64 + func (s Int64s) ToInt16s() []int16 + func (s Int64s) ToInt32s() []int32 + func (s Int64s) ToInt8s() []int8 + func (s Int64s) ToInterfaces() []interface{} + func (s Int64s) ToInts() []int + func (s Int64s) ToUint16s() []uint16 + func (s Int64s) ToUint32s() []uint32 + func (s Int64s) ToUint64s() []uint64 + func (s Int64s) ToUint8s() []uint8 + func (s Int64s) ToUints() []uint + type Int8s []int8 + func (s Int8s) ToFloat32s() []float32 + func (s Int8s) ToFloat64s() []float64 + func (s Int8s) ToInt16s() []int16 + func (s Int8s) ToInt32s() []int32 + func (s Int8s) ToInt64s() []int64 + func (s Int8s) ToInterfaces() []interface{} + func (s Int8s) ToInts() []int + func (s Int8s) ToUint16s() []uint16 + func (s Int8s) ToUint32s() []uint32 + func (s Int8s) ToUint64s() []uint64 + func (s Int8s) ToUint8s() []uint8 + func (s Int8s) ToUints() []uint + type Interfaces []interface + func (s Interfaces) ToBools() []bool + func (s Interfaces) ToComplex128s() []complex128 + func (s Interfaces) ToComplex64s() []complex64 + func (s Interfaces) ToFloat32s() []float32 + func (s Interfaces) ToFloat64s() []float64 + func (s Interfaces) ToInt16s() []int16 + func (s Interfaces) ToInt32s() []int32 + func (s Interfaces) ToInt64s() []int64 + func (s Interfaces) ToInt8s() []int8 + func (s Interfaces) ToInts() []int + func (s Interfaces) ToStrings() []string + func (s Interfaces) ToUint16s() []uint16 + func (s Interfaces) ToUint32s() []uint32 + func (s Interfaces) ToUint64s() []uint64 + func (s Interfaces) ToUint8s() []uint8 + func (s Interfaces) ToUints() []uint + type Ints []int + func (s Ints) ToFloat32s() []float32 + func (s Ints) ToFloat64s() []float64 + func (s Ints) ToInt16s() []int16 + func (s Ints) ToInt32s() []int32 + func (s Ints) ToInt64s() []int64 + func (s Ints) ToInt8s() []int8 + func (s Ints) ToInterfaces() []interface{} + func (s Ints) ToUint16s() []uint16 + func (s Ints) ToUint32s() []uint32 + func (s Ints) ToUint64s() []uint64 + func (s Ints) ToUint8s() []uint8 + func (s Ints) ToUints() []uint + type Strings []string + func (s Strings) ToInterfaces() []interface{} + type Uint16s []uint16 + func (s Uint16s) ToFloat32s() []float32 + func (s Uint16s) ToFloat64s() []float64 + func (s Uint16s) ToInt32s() []int32 + func (s Uint16s) ToInt64s() []int64 + func (s Uint16s) ToInt8s() []int8 + func (s Uint16s) ToInterfaces() []interface{} + func (s Uint16s) ToInts() []int + func (s Uint16s) ToUint32s() []uint32 + func (s Uint16s) ToUint64s() []uint64 + func (s Uint16s) ToUint8s() []uint8 + func (s Uint16s) ToUints() []uint + type Uint32s []int32 + func (s Uint32s) ToFloat32s() []float32 + func (s Uint32s) ToFloat64s() []float64 + func (s Uint32s) ToInt16s() []int16 + func (s Uint32s) ToInt32s() []int32 + func (s Uint32s) ToInt64s() []int64 + func (s Uint32s) ToInt8s() []int8 + func (s Uint32s) ToInterfaces() []interface{} + func (s Uint32s) ToInts() []int + func (s Uint32s) ToUint16s() []uint16 + func (s Uint32s) ToUint64s() []uint64 + func (s Uint32s) ToUint8s() []uint8 + func (s Uint32s) ToUints() []uint + type Uint64s []uint64 + func (s Uint64s) ToFloat32s() []float32 + func (s Uint64s) ToFloat64s() []float64 + func (s Uint64s) ToInt16s() []int16 + func (s Uint64s) ToInt32s() []int32 + func (s Uint64s) ToInt64s() []int64 + func (s Uint64s) ToInt8s() []int8 + func (s Uint64s) ToInterfaces() []interface{} + func (s Uint64s) ToInts() []int + func (s Uint64s) ToUint16s() []uint16 + func (s Uint64s) ToUint32s() []uint32 + func (s Uint64s) ToUint64s() []uint64 + func (s Uint64s) ToUint8s() []uint8 + func (s Uint64s) ToUints() []uint + type Uint8s []uint8 + func (s Uint8s) ToFloat32s() []float32 + func (s Uint8s) ToFloat64s() []float64 + func (s Uint8s) ToInt16s() []int16 + func (s Uint8s) ToInt32s() []int32 + func (s Uint8s) ToInt64s() []int64 + func (s Uint8s) ToInt8s() []int8 + func (s Uint8s) ToInterfaces() []interface{} + func (s Uint8s) ToInts() []int + func (s Uint8s) ToUint16s() []uint16 + func (s Uint8s) ToUint32s() []uint32 + func (s Uint8s) ToUint64s() []uint64 + func (s Uint8s) ToUints() []uint + type Uints []uint + func (s Uints) ToFloat32s() []float32 + func (s Uints) ToFloat64s() []float64 + func (s Uints) ToInt16s() []int16 + func (s Uints) ToInt32s() []int32 + func (s Uints) ToInt64s() []int64 + func (s Uints) ToInt8s() []int8 + func (s Uints) ToInterfaces() []interface{} + func (s Uints) ToInts() []int + func (s Uints) ToUint16s() []uint16 + func (s Uints) ToUint32s() []uint32 + func (s Uints) ToUint64s() []uint64 + func (s Uints) ToUint8s() []uint8