ua

package
v4.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blacklist = []string{}/* 923 elements not displayed */

Blacklist is a list of User-Agents to ignore.

Functions

func ContainsNonASCIICharacters added in v4.2.0

func ContainsNonASCIICharacters(ua string) bool

ContainsNonASCIICharacters returns true if the string only consists out of ASCII characters.

func Parse

func Parse(ua string) model.UserAgent

Parse parses given User-Agent header and returns the extracted information. This just supports major browsers and operating systems, we don't care about browsers and OSes that have no market share, unless you prove us wrong.

Types

This section is empty.

Jump to

Keyboard shortcuts

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