Documentation ¶
Index ¶
- func FlattenInterfaceSlices(in ...interface{}) []interface{}
- func InterfaceToBoolSlice(in interface{}) ([]bool, bool)
- func InterfaceToFloat32(in interface{}) (float32, bool)
- func InterfaceToFloat32Slice(in interface{}) ([]float32, bool)
- func InterfaceToFloat64(in interface{}) (float64, bool)
- func InterfaceToFloat64Slice(in interface{}) ([]float64, bool)
- func InterfaceToInt(in interface{}) (int, bool)
- func InterfaceToInt16(in interface{}) (int16, bool)
- func InterfaceToInt16Downcast(in interface{}) (int16, bool)
- func InterfaceToInt32(in interface{}) (int32, bool)
- func InterfaceToInt32Downcast(in interface{}) (int32, bool)
- func InterfaceToInt32Slice(in interface{}) ([]int32, bool)
- func InterfaceToInt64(in interface{}) (int64, bool)
- func InterfaceToInt64Downcast(in interface{}) (int64, bool)
- func InterfaceToInt64Slice(in interface{}) ([]int64, bool)
- func InterfaceToInt8(in interface{}) (int8, bool)
- func InterfaceToInt8Downcast(in interface{}) (int8, bool)
- func InterfaceToIntDowncast(in interface{}) (int, bool)
- func InterfaceToIntSlice(in interface{}) ([]int, bool)
- func InterfaceToInterfaceInterfaceMap(in interface{}) (map[interface{}]interface{}, bool)
- func InterfaceToInterfaceSlice(in interface{}) ([]interface{}, bool)
- func InterfaceToStrInterfaceMap(in interface{}) (map[string]interface{}, bool)
- func InterfaceToStrInterfaceMapSlice(in interface{}) ([]map[string]interface{}, bool)
- func InterfaceToStrSlice(in interface{}) ([]string, bool)
- func InterfaceToStrStrMap(in interface{}) (map[string]string, bool)
- func IsFloatType(in interface{}) bool
- func IsIntType(in interface{}) bool
- func IsNumericType(in interface{}) bool
- func IsScalarType(in interface{}) bool
- func JSONMarshallable(in interface{}) (interface{}, bool)
- func JSONNumber(in interface{}) interface{}
- func JSONNumberToInt(in interface{}) (interface{}, bool)
- func JSONNumberToIntOrFloat(in interface{}) (interface{}, bool)
- func JSONNumbers(in []interface{}) []interface{}
- func StrMapToStrInterfaceMap(in map[string]string) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlattenInterfaceSlices ¶ added in v0.12.0
func FlattenInterfaceSlices(in ...interface{}) []interface{}
func InterfaceToBoolSlice ¶
func InterfaceToFloat32 ¶
InterfaceToFloat32 will convert any int or float type
func InterfaceToFloat32Slice ¶
func InterfaceToFloat64 ¶
InterfaceToFloat64 will convert any int or float type
func InterfaceToFloat64Slice ¶
func InterfaceToInt ¶
func InterfaceToInt16 ¶
func InterfaceToInt32 ¶
func InterfaceToInt32Slice ¶
func InterfaceToInt64 ¶
func InterfaceToInt64Slice ¶
func InterfaceToInt8 ¶
func InterfaceToInt8Downcast ¶
func InterfaceToIntDowncast ¶
func InterfaceToIntSlice ¶
func InterfaceToInterfaceInterfaceMap ¶
func InterfaceToInterfaceInterfaceMap(in interface{}) (map[interface{}]interface{}, bool)
func InterfaceToInterfaceSlice ¶
func InterfaceToInterfaceSlice(in interface{}) ([]interface{}, bool)
func InterfaceToStrSlice ¶
func InterfaceToStrStrMap ¶
func IsFloatType ¶
func IsFloatType(in interface{}) bool
func IsNumericType ¶ added in v0.8.0
func IsNumericType(in interface{}) bool
func IsScalarType ¶
func IsScalarType(in interface{}) bool
func JSONMarshallable ¶ added in v0.24.0
func JSONMarshallable(in interface{}) (interface{}, bool)
Recursively casts interface->interface maps to string->interface maps
func JSONNumber ¶ added in v0.8.0
func JSONNumber(in interface{}) interface{}
func JSONNumberToInt ¶
func JSONNumberToInt(in interface{}) (interface{}, bool)
func JSONNumberToIntOrFloat ¶
func JSONNumberToIntOrFloat(in interface{}) (interface{}, bool)
func JSONNumbers ¶ added in v0.8.0
func JSONNumbers(in []interface{}) []interface{}
func StrMapToStrInterfaceMap ¶ added in v0.15.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.