Versions in this module Expand all Collapse all v1 v1.0.3 Oct 15, 2024 v1.0.2 Oct 15, 2024 v1.0.1 Oct 4, 2024 Changes in this version + const Android + const Applebot + const Bingbot + const BlackBerry + const Chrome + const ChromeOS + const CrOS + const Edge + const FacebookApp + const FacebookExternalHit + const Firefox + const FreeBSD + const GoogleAdsBot + const Googlebot + const Harmony + const HeadlessChrome + const IOS + const InstagramApp + const InternetExplorer + const Linux + const MacOS + const Mobile + const MobileSafari + const Mozilla + const Msie + const NetFront + const Opera + const OperaMini + const OperaTouch + const Safari + const SamsungBrowser + const Tablet + const TiktokApp + const Twitterbot + const Version + const Vivaldi + const Windows + const WindowsNT + const WindowsPhone + const WindowsPhoneOS + const YandexAdNet + const YandexBot + type UserAgent struct + Bot bool + Desktop bool + Device string + Mobile bool + Name string + OS string + OSVersion string + OSVersionNo VersionNo + String string + Tablet bool + URL string + Version string + VersionNo VersionNo + func Parse(userAgent string) UserAgent + func (ua UserAgent) IsAndroid() bool + func (ua UserAgent) IsBlackBerry() bool + func (ua UserAgent) IsBlackberryOS() bool + func (ua UserAgent) IsChrome() bool + func (ua UserAgent) IsChromeOS() bool + func (ua UserAgent) IsEdge() bool + func (ua UserAgent) IsFacebookbot() bool + func (ua UserAgent) IsFirefox() bool + func (ua UserAgent) IsGooglebot() bool + func (ua UserAgent) IsIOS() bool + func (ua UserAgent) IsInternetExplorer() bool + func (ua UserAgent) IsLinux() bool + func (ua UserAgent) IsMacOS() bool + func (ua UserAgent) IsOpera() bool + func (ua UserAgent) IsOperaMini() bool + func (ua UserAgent) IsSafari() bool + func (ua UserAgent) IsTwitterbot() bool + func (ua UserAgent) IsUnknown() bool + func (ua UserAgent) IsWindows() bool + func (ua UserAgent) IsYandexbot() bool + func (ua UserAgent) OSVersionNoFull() string + func (ua UserAgent) OSVersionNoShort() string + func (ua UserAgent) VersionNoFull() string + func (ua UserAgent) VersionNoShort() string + type VersionNo struct + Major int + Minor int + Patch int