util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildReflectTypeKey

func BuildReflectTypeKey(varType reflect.Type) string

func GetPrintableTypeWithValue added in v1.0.0

func GetPrintableTypeWithValue(in interface{}) string

func KeyFN

func KeyFN(t interface{}) string

func MatchError added in v1.0.0

func MatchError(src, tgt error) bool

func TryCoerceToBigFloat added in v1.0.0

func TryCoerceToBigFloat(in interface{}) (*big.Float, error)

func TryCoerceToBool added in v1.0.0

func TryCoerceToBool(in interface{}) (bool, error)

func TryCoerceToFloat64 added in v1.0.0

func TryCoerceToFloat64(in interface{}) (float64, error)

func TryCoerceToFloats added in v1.0.0

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

func TryCoerceToInt added in v1.0.0

func TryCoerceToInt(in interface{}) (int, error)

func TryCoerceToInt64 added in v1.0.0

func TryCoerceToInt64(in interface{}) (int64, error)

func TryCoerceToInt64s added in v1.0.0

func TryCoerceToInt64s(in interface{}) ([]int64, error)

func TryCoerceToInts added in v1.0.0

func TryCoerceToInts(in interface{}) ([]int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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