util

package
v0.0.0-...-7631e6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 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 BrowserHeaders() http.Header

func ContainsStr

func ContainsStr(slice []string, str string) bool

func IsWindows

func IsWindows() bool

func NewSingleStackHTTPClient

func NewSingleStackHTTPClient(httpTimeout, dialTimeout, keepAliveTimeout time.Duration, ipv6 bool) *http.Client

func Printf

func Printf(enabled bool, format string, v ...interface{})

func Println

func Println(enabled bool, v ...interface{})

func RemoveDuplicate

func RemoveDuplicate[T comparable](sliceList []T) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL