Documentation ¶
Index ¶
- Constants
- func All[T any](val []T, fn func(x T) bool) bool
- func Any[T any](val []T, fn func(x T) bool) bool
- func DNSLookup(ip string) string
- func DNSResolve(url string) []string
- func DeepCopy[T any](src T) *T
- func First[T any](in []T) T
- func GetFile(url string) ([]byte, error)
- func GetOutboundIP() string
- func LocalIP() string
- func Must[T any](out T, err error) T
- func PanicHandler() error
- func PanicOnNil(v any)
- func PathExists(path string) bool
- func RequestIP(r *http.Request) string
- func Ternary[T any](cond bool, t, f T) T
- func WaitWithTimeout(wg *sync.WaitGroup, timeout time.Duration) error
- type Lock
- type Pool
Constants ¶
View Source
const DNSTimeout = 100 * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
func DNSResolve ¶
func PanicHandler ¶
func PanicHandler() error
func PanicOnNil ¶
func PanicOnNil(v any)
func PathExists ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.