x

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ALPHABET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
View Source
const ALPHABET_LOWER = "abcdefghijklmnopqrstuvwxyz"
View Source
const ALPHABET_NUMERIC = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
View Source
const ALPHABET_NUMERIC_NO_ZERO = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789"
View Source
const ALPHABET_UPPER = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Variables

This section is empty.

Functions

func Assert

func Assert[T any](in any, ifFailed T) T

func AssertAsFloat

func AssertAsFloat(in any, ifFailed float64) float64

func AssertAsInt

func AssertAsInt(in any, ifFailed int) int

func AssertPanic

func AssertPanic[T any](in any) T

func Ite

func Ite[T any](conExpr bool, ifTrue, ifFalse T) T

func IteFunc

func IteFunc[T any](conExpr bool, ifTrue, ifFalse func() T) T

func IteFuncElse

func IteFuncElse[T any](conExpr bool, ifTrue T, ifFalse func() T) T

func IteFuncTrue

func IteFuncTrue[T any](conExpr bool, ifTrue func() T, ifFalse T) T

func NotNil

func NotNil(a ...any) bool

func PanicIfNil

func PanicIfNil(a ...any)

func RndId added in v0.0.19

func RndId(length int) string

func RndIdCharset added in v0.0.19

func RndIdCharset(length int, charset string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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