Versions in this module Expand all Collapse all v1 v1.0.4 Apr 17, 2023 Changes in this version type Version + Extra string v1.0.3 Oct 13, 2022 v1.0.2 Oct 13, 2022 v1.0.1 May 17, 2022 Changes in this version type DeviceType + const DeviceMediaHub v1.0.0 Apr 14, 2021 Changes in this version + func ParseUserAgent(ua string, dest *UserAgent) + type Browser struct + Name BrowserName + Version Version + type BrowserName int + const BrowserAndroid + const BrowserAppleBot + const BrowserBaiduBot + const BrowserBingBot + const BrowserBlackberry + const BrowserBot + const BrowserChrome + const BrowserCocCoc + const BrowserCocCocBot + const BrowserDuckDuckGoBot + const BrowserFacebookBot + const BrowserFirefox + const BrowserGoogleBot + const BrowserIE + const BrowserLinkedInBot + const BrowserMaxthon + const BrowserMsnBot + const BrowserNetFront + const BrowserNintendo + const BrowserNokia + const BrowserOpera + const BrowserPingdomBot + const BrowserQQ + const BrowserSafari + const BrowserSamsung + const BrowserSilk + const BrowserSogouExplorer + const BrowserSpotify + const BrowserTwitterBot + const BrowserUCBrowser + const BrowserUnknown + const BrowserYahooBot + const BrowserYandex + const BrowserYandexBot + func (b BrowserName) StringTrimPrefix() string + func (i BrowserName) String() string + type DeviceType int + const DeviceComputer + const DeviceConsole + const DevicePhone + const DeviceTV + const DeviceTablet + const DeviceUnknown + const DeviceWearable + func (d DeviceType) StringTrimPrefix() string + func (i DeviceType) String() string + 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 OSUnknown + const OSWebOS + const OSWindows + const OSWindowsPhone + const OSXbox + const OSiOS + func (i OSName) String() string + func (o OSName) StringTrimPrefix() string + type Platform int + 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 (i Platform) String() string + func (p Platform) StringTrimPrefix() string + type UserAgent struct + Browser Browser + DeviceType DeviceType + OS OS + func Parse(ua string) *UserAgent + func (ua *UserAgent) IsBot() bool + func (ua *UserAgent) Reset() + type Version struct + Major int + Minor int + Patch int + func (v Version) Less(c Version) bool