Documentation
¶
Index ¶
- Constants
- func Assert[T any](in any, ifFailed T) T
- func AssertAsFloat(in any, ifFailed float64) float64
- func AssertAsInt(in any, ifFailed int) int
- func AssertPanic[T any](in any) T
- func Ite[T any](conExpr bool, ifTrue, ifFalse T) T
- func IteFunc[T any](conExpr bool, ifTrue, ifFalse func() T) T
- func IteFuncElse[T any](conExpr bool, ifTrue T, ifFalse func() T) T
- func IteFuncTrue[T any](conExpr bool, ifTrue func() T, ifFalse T) T
- func NotNil(a ...any) bool
- func PanicIfNil(a ...any)
- func RndId(length int) string
- func RndIdCharset(length int, charset string) string
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 AssertAsFloat ¶
func AssertAsInt ¶
func AssertPanic ¶
func IteFuncElse ¶
func IteFuncTrue ¶
func PanicIfNil ¶
func PanicIfNil(a ...any)
func RndIdCharset ¶ added in v0.0.19
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.