utils

package
v0.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToBool

func ConvertToBool(unk interface{}) (bool, error)

func ConvertToFloat64

func ConvertToFloat64(unk interface{}) (float64, error)

ConvertToFloat64 converts an unknown type to float Based on https://stackoverflow.com/a/20767884/2749989

func ConvertToInt

func ConvertToInt(unk interface{}) (int, error)

func ConvertToInt64

func ConvertToInt64(unk interface{}) (int64, error)

func ConvertToUint32

func ConvertToUint32(unk interface{}) (uint32, error)

func ConvertToUint64

func ConvertToUint64(unk interface{}) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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