one

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Guid

func Guid() string

func Hash

func Hash(id string) uint32

func HashString

func HashString(id string) string

func HashStringLen

func HashStringLen(id string, maxLen int) string

func InDevMode

func InDevMode(pkg string) bool

func Max

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

func Md5

func Md5(data []byte) string

func Min

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

func Pick

func Pick[T comparable](args ...T) T

Pick first non-empty value.

func ShortID

func ShortID() string

Types

type CorruptInputError

type CorruptInputError int64

func (CorruptInputError) Error

func (e CorruptInputError) Error() string

type Float

type Float interface {
	~float32 | ~float64
}

type Integer

type Integer interface {
	Signed | Unsigned
}

type Ordered

type Ordered interface {
	Integer | Float | ~string
}

type Signed

type Signed interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type Unsigned

type Unsigned interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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