convert

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyToBoolean

func AnyToBoolean(v any) (bool, error)

func AnyToDuration added in v1.10.0

func AnyToDuration(v any) (time.Duration, error)

func AnyToFloat

func AnyToFloat(v any) (float64, error)

func AnyToInteger

func AnyToInteger(v any) (int64, error)

func AnyToIntegerWithTimeDuration added in v1.10.0

func AnyToIntegerWithTimeDuration(v any, layout string) (int64, error)

func AnyToString

func AnyToString(v any) (string, error)

func AnyToStringWithTimeDuration added in v1.10.0

func AnyToStringWithTimeDuration(v any, layout string) (string, error)

func AnyToTime added in v1.10.0

func AnyToTime(v any, layout string) (time.Time, error)

func AnyToUnsigned

func AnyToUnsigned(v any) (uint64, error)

func AnyToUnsignedWithTimeDuration added in v1.10.0

func AnyToUnsignedWithTimeDuration(v any, layout string) (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