Versions in this module Expand all Collapse all v0 v0.3.1 Sep 29, 2026 Changes in this version type Hints + AppBundle string v0.3.0 Aug 12, 2026 Changes in this version + func ParseUserAgent(ua string, dest *UserAgent) + func ParseUserAgentWithHints(ua string, hints *Hints, dest *UserAgent) + type Browser struct + Name BrowserName + Version Version + type BrowserName int + const BrowserAhrefsBot + const BrowserAmazonBot + const BrowserAndroid + const BrowserAnthropicBot + const BrowserAppleBot + const BrowserBaiduBot + const BrowserBingBot + const BrowserBlackberry + const BrowserBot + const BrowserBytedanceBot + const BrowserChrome + const BrowserCocCoc + const BrowserCocCocBot + const BrowserCommonCrawlBot + const BrowserDuckDuckGo + const BrowserDuckDuckGoBot + const BrowserFacebook + const BrowserFacebookBot + const BrowserFirefox + const BrowserGoogleBot + const BrowserHuawei + const BrowserIE + const BrowserInstagram + const BrowserLine + const BrowserLinkedInBot + const BrowserMIUI + const BrowserMaxthon + const BrowserMsnBot + const BrowserNetFront + const BrowserNintendo + const BrowserNokia + const BrowserOpenAIBot + const BrowserOpera + const BrowserPerplexityBot + const BrowserPetalBot + const BrowserPingdomBot + const BrowserQQ + const BrowserSafari + const BrowserSamsung + const BrowserSemrushBot + const BrowserSilk + const BrowserSnapchat + const BrowserSogouExplorer + const BrowserSpotify + const BrowserTikTok + const BrowserTwitterBot + const BrowserUCBrowser + const BrowserUnknown + const BrowserVivaldi + const BrowserWeChat + const BrowserWhale + const BrowserYahooBot + const BrowserYandex + const BrowserYandexBot + func (b BrowserName) String() string + func (b BrowserName) StringTrimPrefix() string + type DeviceType int + const DeviceComputer + const DeviceConsole + const DevicePhone + const DeviceTV + const DeviceTablet + const DeviceUnknown + const DeviceWearable + func (d DeviceType) String() string + func (d DeviceType) StringTrimPrefix() string + type Hints struct + FormFactors string + Mobile string + Platform string + PlatformVersion string + ScreenSize *ScreenSize + type OS struct + Name OSName + Platform Platform + Version Version + type OSName int + const OSAndroid + const OSBlackberry + const OSBot + const OSChromeOS + const OSKindle + const OSLinux + const OSMacOSX + const OSNintendo + const OSPlaystation + const OSRoku + const OSTizen + const OSTvOS + const OSUnknown + const OSWebOS + const OSWindows + const OSWindowsPhone + const OSXbox + const OSiOS + const OSiPadOS + func (o OSName) String() string + func (o OSName) StringTrimPrefix() string + type Platform int + const PlatformAppleTV + const PlatformBlackberry + const PlatformBot + const PlatformLinux + const PlatformMac + const PlatformNintendo + const PlatformPlaystation + const PlatformUnknown + const PlatformWindows + const PlatformWindowsPhone + const PlatformXbox + const PlatformiPad + const PlatformiPhone + const PlatformiPod + func (p Platform) String() string + func (p Platform) StringTrimPrefix() string + type ScreenSize struct + Height int + Width int + type UserAgent struct + Browser Browser + DeviceType DeviceType + OS OS + func Parse(ua string) *UserAgent + func ParseWithHints(ua string, hints *Hints) *UserAgent + func (u *UserAgent) IsBot() bool + func (u *UserAgent) Reset() + type Version struct + Major int + Minor int + Patch int + func (v Version) Less(c Version) bool