Documentation ¶
Index ¶
- Constants
- Variables
- func BrowserHeaders() http.Header
- func ContainsStr(slice []string, str string) bool
- func IsWindows() bool
- func NewSingleStackHTTPClient(httpTimeout, dialTimeout, keepAliveTimeout time.Duration, ipv6 bool) *http.Client
- func Printf(enabled bool, format string, v ...interface{})
- func Println(enabled bool, v ...interface{})
- func RemoveDuplicate[T comparable](sliceList []T) []T
Constants ¶
View Source
const MacOSChromeUA = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
Variables ¶
View Source
var ( Json = jsoniter.ConfigCompatibleWithStandardLibrary Logger service.Logger = service.ConsoleLogger )
View Source
var DNSServersAll = append(DNSServersV4, DNSServersV6...)
View Source
var DNSServersV4 = []string{"8.8.4.4:53", "223.5.5.5:53", "94.140.14.140:53", "119.29.29.29:53"}
View Source
var DNSServersV6 = []string{"[2001:4860:4860::8844]:53", "[2400:3200::1]:53", "[2a10:50c0::1:ff]:53", "[2402:4e00::]:53"}
Functions ¶
func BrowserHeaders ¶
func ContainsStr ¶
func RemoveDuplicate ¶
func RemoveDuplicate[T comparable](sliceList []T) []T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.