Documentation ¶
Index ¶
- func BValOrFalse(in interface{}) (out bool)
- func F64Slice(in []interface{}) ([]float64, error)
- func F64ValOrZero(in interface{}) (out float64)
- func FloatToJsonNumber(i interface{}) json.Number
- func I64ValOrZero(in interface{}) (out int64)
- func IValOrZero(i interface{}) int
- func ItfToStrSlice(in interface{}) ([]string, error)
- func SValOrEmpty(i interface{}) string
- func SiMapOrEmpty(i interface{}) map[string]interface{}
- func ToFloat64Array(i [][]interface{}) ([][]float64, error)
- func ToInt(in interface{}) int
- func ToInterface(flt []float64) []interface{}
- func ToInterfaceArray(i []interface{}) [][]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BValOrFalse ¶
func BValOrFalse(in interface{}) (out bool)
func F64ValOrZero ¶
func F64ValOrZero(in interface{}) (out float64)
func FloatToJsonNumber ¶
func I64ValOrZero ¶
func I64ValOrZero(in interface{}) (out int64)
func IValOrZero ¶
func IValOrZero(i interface{}) int
func ItfToStrSlice ¶
func SValOrEmpty ¶
func SValOrEmpty(i interface{}) string
func SiMapOrEmpty ¶
func SiMapOrEmpty(i interface{}) map[string]interface{}
func ToFloat64Array ¶
func ToInt ¶
func ToInt(in interface{}) int
ToInt converts various types to integer. If fails, returns 0
func ToInterface ¶
func ToInterface(flt []float64) []interface{}
func ToInterfaceArray ¶
func ToInterfaceArray(i []interface{}) [][]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.