Versions in this module Expand all Collapse all v0 v0.52.5 Dec 8, 2023 v0.52.4 Dec 8, 2023 Changes in this version + func BasicAuth(username, passwd string) string + func CanonicalAddr(host string, port int) (addr string) + func CanonicalHost(host string) (string, error) + 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 OkResponse() *http.Response + func ParseBasicAuth(auth string) (username, password string, ok bool) + func ParseRangeNumbers(rangeStr string) (numbers []int64, err error) + func ProxyUnauthorizedResponse() *http.Response + func RandID() (id string, err error) + func RandIDWithLen(idLen int) (id string, err error) + func RandIDWithRandLen(start, end int) (id string, err error) + func RandomSleep(duration time.Duration, minRatio, maxRatio float64) time.Duration