Versions in this module Expand all Collapse all v1 v1.1.0 May 18, 2024 Changes in this version type Browser + func (b *Browser) IsBrave() bool + func (b *Browser) IsFirefox() bool + func (b *Browser) IsVivaldi() bool v1.0.0 Oct 13, 2023 Changes in this version + var ErrNoUserAgent = fmt.Errorf("no user agent provided") + var ErrUserAgentSizeExceeded = fmt.Errorf("user agent size exceeds limit of %d", userAgentSizeLimit) + type Bot struct + func NewBot(userAgent string) (*Bot, error) + func (b *Bot) IsBot() bool + func (b *Bot) Name() string + func (b *Bot) Why() string + type BotMatcher interface + type Browser struct + func NewBrowser(userAgent string) (*Browser, error) + func (b *Browser) Bot() *Bot + func (b *Browser) Device() *Device + func (b *Browser) IsAlipay() bool + func (b *Browser) IsBlackBerry() bool + func (b *Browser) IsBrowserKnown() bool + func (b *Browser) IsChrome() bool + func (b *Browser) IsDuckDuckGo() bool + func (b *Browser) IsEdge() bool + func (b *Browser) IsElectron() bool + func (b *Browser) IsGoogleSearchApp() bool + func (b *Browser) IsHuaweiBrowser() bool + func (b *Browser) IsInstagram() bool + func (b *Browser) IsInternetExplorer() bool + func (b *Browser) IsKonqueror() bool + func (b *Browser) IsMaxthon() bool + func (b *Browser) IsMicroMessenger() bool + func (b *Browser) IsMiuiBrowser() bool + func (b *Browser) IsNokia() bool + func (b *Browser) IsOpera() bool + func (b *Browser) IsOtter() bool + func (b *Browser) IsPaleMoon() bool + func (b *Browser) IsPuffin() bool + func (b *Browser) IsQQ() bool + func (b *Browser) IsSafari() bool + func (b *Browser) IsSafariWebappMode() bool + func (b *Browser) IsSamsungBrowser() bool + func (b *Browser) IsSnapchat() bool + func (b *Browser) IsSougouBrowser() bool + func (b *Browser) IsSputnik() bool + func (b *Browser) IsUCBrowser() bool + func (b *Browser) IsUnknown() bool + func (b *Browser) IsVivoBrowser() bool + func (b *Browser) IsWechat() bool + func (b *Browser) IsWeibo() bool + func (b *Browser) IsYaaniBrowser() bool + func (b *Browser) IsYandex() bool + func (b *Browser) Name() string + func (b *Browser) Platform() *Platform + func (b *Browser) ShortVersion() string + func (b *Browser) Version() string + type BrowserMatcher interface + Version func() string + type Device struct + func NewDevice(userAgent string) (*Device, error) + func (d *Device) IsBlackberryPlaybook() bool + func (d *Device) IsConsole() bool + func (d *Device) IsIPad() bool + func (d *Device) IsIPhone() bool + func (d *Device) IsIPodTouch() bool + func (d *Device) IsKindle() bool + func (d *Device) IsKindleFire() bool + func (d *Device) IsMobile() bool + func (d *Device) IsNintendo() bool + func (d *Device) IsNintendoSwitch() bool + func (d *Device) IsNintendoWii() bool + func (d *Device) IsNintendoWiiU() bool + func (d *Device) IsPSP() bool + func (d *Device) IsPlayStation() bool + func (d *Device) IsPs3() bool + func (d *Device) IsPs4() bool + func (d *Device) IsPs5() bool + func (d *Device) IsSamsung() bool + func (d *Device) IsSurface() bool + func (d *Device) IsSwitch() bool + func (d *Device) IsTV() bool + func (d *Device) IsTablet() bool + func (d *Device) IsWii() bool + func (d *Device) IsWiiU() bool + func (d *Device) IsXbox() bool + func (d *Device) IsXbox360() bool + func (d *Device) IsXboxOne() bool + func (d *Device) Name() string + type DeviceMatcher interface + type Matcher interface + Match func() bool + Name func() string + type Platform struct + func NewPlatform(userAgent string) (*Platform, error) + func (p *Platform) IsAdobeAir() bool + func (p *Platform) IsAdobeAirVersionCompatible(version string) bool + func (p *Platform) IsAndroid() bool + func (p *Platform) IsAndroidApp() bool + func (p *Platform) IsAndroidWebview() bool + func (p *Platform) IsBlackBerry() bool + func (p *Platform) IsChromeOS() bool + func (p *Platform) IsChromeOSVersionCompatible(version string) bool + func (p *Platform) IsIOS() bool + func (p *Platform) IsIOSApp() bool + func (p *Platform) IsIOSWebview() bool + func (p *Platform) IsKaiOS() bool + func (p *Platform) IsLinux() bool + func (p *Platform) IsWatchOS() bool + func (p *Platform) IsWindows() bool + func (p *Platform) IsWindows10() bool + func (p *Platform) IsWindows7() bool + func (p *Platform) IsWindows8() bool + func (p *Platform) IsWindows8_1() bool + func (p *Platform) IsWindowsMobile() bool + func (p *Platform) IsWindowsPhone() bool + func (p *Platform) IsWindowsRT() bool + func (p *Platform) IsWindowsTouchScreenDesktop() bool + func (p *Platform) IsWindowsVista() bool + func (p *Platform) IsWindowsWOW64() bool + func (p *Platform) IsWindowsX64() bool + func (p *Platform) IsWindowsX64Inclusive() bool + func (p *Platform) IsWindowsXP() bool + func (p *Platform) Name() string + func (p *Platform) Version() string + type PlatformMatcher interface + Version func() string