convert

package
v0.0.0-...-9e0b26f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 3 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BValOrFalse

func BValOrFalse(in interface{}) (out bool)

func F64Slice

func F64Slice(in []interface{}) ([]float64, error)

func F64ValOrZero

func F64ValOrZero(in interface{}) (out float64)

func FloatToJsonNumber

func FloatToJsonNumber(i interface{}) json.Number

func I64ValOrZero

func I64ValOrZero(in interface{}) (out int64)

func IValOrZero

func IValOrZero(i interface{}) int

func ItfToStrSlice

func ItfToStrSlice(in interface{}) ([]string, error)

func SValOrEmpty

func SValOrEmpty(i interface{}) string

func SiMapOrEmpty

func SiMapOrEmpty(i interface{}) map[string]interface{}

func ToFloat64Array

func ToFloat64Array(i [][]interface{}) ([][]float64, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL