gutil

package module
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 5 Imported by: 10

README

some useful util tools

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bound

func Bound[T constraints.Ordered](a, min, max T) T

func If

func If[T any](ok bool, trueValue, falseValue T) T

func Int32ToString added in v0.1.7

func Int32ToString(i int32) string

func Int64ToString added in v0.1.7

func Int64ToString(i int64) string

func MD5

func MD5(str string) string

func Max

func Max[T constraints.Ordered](a, b T) T

func Min

func Min[T constraints.Ordered](a, b T) T

func StrToBool added in v0.1.7

func StrToBool(str string) bool

func StrToFloat32 added in v0.1.7

func StrToFloat32(str string) float32

func StrToFloat64 added in v0.1.7

func StrToFloat64(str string) float64

func StrToInt32 added in v0.1.7

func StrToInt32(str string) int32

func StrToInt64 added in v0.1.7

func StrToInt64(str string) int64

func StrToUint32 added in v0.1.7

func StrToUint32(str string) uint32

func StrToUint64 added in v0.1.7

func StrToUint64(str string) uint64

func Uint32ToString added in v0.1.7

func Uint32ToString(i uint32) string

func Uint64ToString added in v0.1.7

func Uint64ToString(i uint64) string

Types

This section is empty.

Directories

Path Synopsis
Package glog implements logging analogous to the Google-internal C++ INFO/ERROR/V setup.
Package glog implements logging analogous to the Google-internal C++ INFO/ERROR/V setup.

Jump to

Keyboard shortcuts

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