conv

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyToString

func AnyToString(v any) (string, error)

func Bytes2String

func Bytes2String(bs []byte) string

func ConvertOrMerge added in v0.7.3

func ConvertOrMerge(dst interface{}, src interface{}) error

func Float64ToUint64

func Float64ToUint64(val float64) uint64

func Int64ToUint64

func Int64ToUint64(val int64) uint64

func MapTo added in v0.7.3

func MapTo(dst interface{}, m map[string]interface{}) error

func String2Bytes

func String2Bytes(s string) []byte

func String2BytesNoCap

func String2BytesNoCap(s string) []byte

func ToBool added in v0.6.4

func ToBool(v any) (bool, error)

func ToFloat added in v0.6.4

func ToFloat(v any) (float64, error)

func ToInt added in v0.6.4

func ToInt(v any) (int, error)

func ToUint added in v0.6.4

func ToUint(v any) (uint, error)

func Uint64ToFloat64

func Uint64ToFloat64(val uint64) float64

func Uint64ToInt64

func Uint64ToInt64(val uint64) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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