Documentation ¶
Index ¶
- Constants
- func DefaultIfEmpty[T any](obj T, defaultObj T) T
- func DefaultIfNil[T any](obj T, defaultObj T) T
- func GetInstanceID(uid uint64, prefix string) string
- func GetIntID() uint64
- func GetUUID36(prefix string) string
- func IsEmpty[T any](obj T) bool
- func IsNil[T any](obj T) bool
- func NewSecretID() string
- func NewSecretKey() string
Constants ¶
View Source
const ( Alphabet62 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" Alphabet36 = "abcdefghijklmnopqrstuvwxyz1234567890" )
Variables ¶
This section is empty.
Functions ¶
func DefaultIfEmpty ¶
func DefaultIfEmpty[T any](obj T, defaultObj T) T
func DefaultIfNil ¶
func DefaultIfNil[T any](obj T, defaultObj T) T
func GetInstanceID ¶
GetInstanceID returns id format like: secret-2v69o5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.