utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GE

func GE[T constraints.Ordered](x, y T) bool

func GT

func GT[T constraints.Ordered](x, y T) bool

func InArray

func InArray[E constraints.Ordered, T any](x E, arr []T) bool

func LE

func LE[T constraints.Ordered](x, y T) bool

func LT

func LT[T constraints.Ordered](x, y T) bool

func ReflectValueof

func ReflectValueof(in reflect.Type, val any) reflect.Value

func ToFloat

func ToFloat(i interface{}) (float64, error)

func ToInt

func ToInt(x any) int

func ToIntWithDefaultValue

func ToIntWithDefaultValue(i interface{}, defaultVal int) int

func ToString

func ToString(i interface{}) string

func ToStringWithDefaultValue

func ToStringWithDefaultValue(i interface{}, defaultVal string) string

func TryParseTime

func TryParseTime(candidate string) (time.Time, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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