Versions in this module Expand all Collapse all v1 v1.0.0 Jul 8, 2019 Changes in this version + const Accept + const AcceptLang + const IPv4RE + const SUBRE + const UserAgent + var KnownValidTLDs []string + func AnySubdomainRegex() *regexp.Regexp + func CIDRSubset(cidr *net.IPNet, addr string, num int) []net.IP + func CheckCookie(urlString string, cookieName string) bool + func CopyCookies(src string, dest string) + func CopyString(src string) string + func GetFileLimit() int — darwin/amd64, linux/amd64, windows/amd64 + func HexString(b []byte) string + func IPv6NibbleFormat(ip string) string + func IsIPv4(ip net.IP) bool + func IsIPv6(ip net.IP) bool + func NetFirstLast(cidr *net.IPNet) (net.IP, net.IP) + func NetHosts(cidr *net.IPNet) []net.IP + func NewUniqueElements(orig []string, add ...string) []string + func RangeHosts(start, end net.IP) []net.IP + func RemoveAsteriskLabel(s string) string + func RequestWebPage(urlstring string, body io.Reader, hvals map[string]string, uid, secret string) (string, error) + func ReverseIP(ip string) string + func ReverseString(s string) string + func SubdomainRegex(domain string) *regexp.Regexp + func UniqueAppend(orig []string, add ...string) []string + type ParseCIDRs []*net.IPNet + func (p *ParseCIDRs) Set(s string) error + func (p *ParseCIDRs) String() string + type ParseIPs []net.IP + func (p *ParseIPs) Set(s string) error + func (p *ParseIPs) String() string + type ParseInts []int + func (p *ParseInts) Set(s string) error + func (p *ParseInts) String() string + type ParseStrings []string + func (p *ParseStrings) Set(s string) error + func (p *ParseStrings) String() string + type Queue struct + func NewQueue() *Queue + func (q *Queue) Append(data interface{}) + func (q *Queue) Empty() bool + func (q *Queue) Len() int + func (q *Queue) Next() (interface{}, bool) + type Semaphore interface + Acquire func(num int) + Release func(num int) + TryAcquire func(num int) bool + func NewSimpleSemaphore(max int) Semaphore + func NewTimedSemaphore(max int, delay time.Duration) Semaphore + type SimpleSemaphore struct + func (s *SimpleSemaphore) Acquire(num int) + func (s *SimpleSemaphore) Release(num int) + func (s *SimpleSemaphore) TryAcquire(num int) bool + type StringFilter struct + func NewStringFilter() *StringFilter + func (sf *StringFilter) Duplicate(s string) bool + type TimedSemaphore struct + func (t *TimedSemaphore) Acquire(num int) + func (t *TimedSemaphore) Release(num int) + func (t *TimedSemaphore) TryAcquire(num int) bool