Documentation
¶
Index ¶
- Constants
- func GetArch(headers http.Header) string
- func GetBitness(headers http.Header) string
- func GetColorScheme(headers http.Header) string
- func GetModel(headers http.Header) string
- func GetPlatform(headers http.Header) string
- func GetPlatformVersion(headers http.Header) string
- func IsMobile(headers http.Header) bool
- type Brand
Constants ¶
const ( // Response headers CriticalCH = "Critical-CH" AcceptCH = "Accept-CH" Vary = "Vary" // Request headers SecCHUA = "Sec-CH-UA" SecCHUAArch = "Sec-CH-UA-Arch" SecCHUABitness = "Sec-CH-UA-Bitness" SecCHUAMobile = "Sec-CH-UA-Mobile" SecCHUAModel = "Sec-CH-UA-Model" SecCHUAPlatform = "Sec-CH-UA-Platform" SecCHUAPlatformVersion = "Sec-CH-UA-Platform-Version" SecCHPrefersColorScheme = "Sec-CH-Prefers-Color-Scheme" )
Variables ¶
This section is empty.
Functions ¶
func GetBitness ¶
GetBitness provides the "bitness" of the user-agent's underlying CPU architecture. This is the size in bits of an integer or memory address—typically 64 or 32 bits.
func GetColorScheme ¶
GetColorScheme provides user color scheme preference at request time A string indicating the user agent's preference for dark or light content: "light" or "dark".
func GetModel ¶
GetModel provides the device model on which the browser is running. For example "Pixel 3".
func GetPlatform ¶
GetPlatform provides the platform or operating system on which the user agent is running. One of the following strings: "Android", "Chrome OS", "Chromium OS", "iOS", "Linux", "macOS", "Windows", or "Unknown"
func GetPlatformVersion ¶
GetPlatformVersion provides the version of the operating system on which the user agent is running. The version string typically contains the operating system version in a string, consisting of dot-separated major, minor and patch version numbers. For example, "11.0.0" The version string on Linux is always empty.