gutil

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 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 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 Str2Bool

func Str2Bool(str string) bool

func Str2Float32

func Str2Float32(str string) float32

func Str2Float64

func Str2Float64(str string) float64

func Str2Int32

func Str2Int32(str string) int32

func Str2Int64

func Str2Int64(str string) int64

func Str2Uint32

func Str2Uint32(str string) uint32

func Str2Uint64

func Str2Uint64(str string) uint64

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