Documentation
¶
Index ¶
- func CanonicalAddr(host string, port int) (addr string)
- func ConstantTimeEqString(a, b string) bool
- func EmptyOr[T comparable](v T, fallback T) T
- func GenerateResponseErrorString(summary string, err error, detailed bool) string
- func GetAuthKey(token string, timestamp int64) (key string)
- func ParseRangeNumbers(rangeStr string) (numbers []int64, err error)
- func RandID() (id string, err error)
- func RandIDWithLen(idLen int) (id string, err error)
- func RandomSleep(duration time.Duration, minRatio, maxRatio float64) time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalAddr ¶
func ConstantTimeEqString ¶
func EmptyOr ¶
func EmptyOr[T comparable](v T, fallback T) T
func GetAuthKey ¶
func ParseRangeNumbers ¶
func RandIDWithLen ¶
RandIDWithLen return a rand string with idLen length.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.