Documentation ¶
Index ¶
- type Alipay
- type BlackBerry
- type Chrome
- type DuckDuckGo
- type Edge
- type Electron
- type GoogleSearchApp
- type HuaweiBrowser
- type Instagram
- type InternetExplorer
- type Konqueror
- type Maxthon
- type MicroMessenger
- type MiuiBrowser
- type Nokia
- type Opera
- type Otter
- type PaleMoon
- type Puffin
- type QQ
- type Safari
- type SamsungBrowser
- type Snapchat
- type SogouBrowser
- type Sputnik
- type UCBrowser
- type Unknown
- type VivoBrowser
- type Weibo
- type YaaniBrowser
- type Yandex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlackBerry ¶
type BlackBerry struct {
// contains filtered or unexported fields
}
func NewBlackBerry ¶
func NewBlackBerry(userAgent string) *BlackBerry
func (*BlackBerry) Match ¶
func (b *BlackBerry) Match() bool
func (*BlackBerry) Name ¶
func (b *BlackBerry) Name() string
func (*BlackBerry) Version ¶
func (b *BlackBerry) Version() string
type DuckDuckGo ¶
type DuckDuckGo struct {
// contains filtered or unexported fields
}
func NewDuckDuckGo ¶
func NewDuckDuckGo(userAgent string) *DuckDuckGo
func (*DuckDuckGo) Match ¶
func (ddg *DuckDuckGo) Match() bool
func (*DuckDuckGo) Name ¶
func (ddg *DuckDuckGo) Name() string
func (*DuckDuckGo) Version ¶
func (ddg *DuckDuckGo) Version() string
type Edge ¶
type Edge struct {
InternetExplorer
}
type Electron ¶
type Electron struct {
// contains filtered or unexported fields
}
func NewElectron ¶
type GoogleSearchApp ¶
type GoogleSearchApp struct {
// contains filtered or unexported fields
}
func NewGoogleSearchApp ¶
func NewGoogleSearchApp(userAgent string) *GoogleSearchApp
func (*GoogleSearchApp) Match ¶
func (g *GoogleSearchApp) Match() bool
func (*GoogleSearchApp) Name ¶
func (g *GoogleSearchApp) Name() string
func (*GoogleSearchApp) Version ¶
func (g *GoogleSearchApp) Version() string
type HuaweiBrowser ¶
type HuaweiBrowser struct {
// contains filtered or unexported fields
}
func NewHuaweiBrowser ¶
func NewHuaweiBrowser(userAgent string) *HuaweiBrowser
func (*HuaweiBrowser) Match ¶
func (h *HuaweiBrowser) Match() bool
func (*HuaweiBrowser) Name ¶
func (h *HuaweiBrowser) Name() string
func (*HuaweiBrowser) Version ¶
func (h *HuaweiBrowser) Version() string
type Instagram ¶
type Instagram struct {
// contains filtered or unexported fields
}
func NewInstagram ¶
type InternetExplorer ¶
type InternetExplorer struct {
// contains filtered or unexported fields
}
func NewInternetExplorer ¶
func NewInternetExplorer(userAgent string) *InternetExplorer
func (*InternetExplorer) Match ¶
func (i *InternetExplorer) Match() bool
Match returns true if the user agent matches one of the Internet Explorer matchers It also checks if the user agent contains MSIE and does not contain Opera
func (*InternetExplorer) Name ¶
func (i *InternetExplorer) Name() string
func (*InternetExplorer) Version ¶
func (i *InternetExplorer) Version() string
Version returns the version of Internet Explorer It first tries to get the version from the Trident version If that fails, it tries to get the version from the MSIE version If that fails, it returns 0.0
type Konqueror ¶
type Konqueror struct {
// contains filtered or unexported fields
}
func NewKonqueror ¶
type MicroMessenger ¶
type MicroMessenger struct {
// contains filtered or unexported fields
}
func NewMicroMessenger ¶
func NewMicroMessenger(userAgent string) *MicroMessenger
func (*MicroMessenger) Match ¶
func (m *MicroMessenger) Match() bool
func (*MicroMessenger) Name ¶
func (m *MicroMessenger) Name() string
func (*MicroMessenger) Version ¶
func (m *MicroMessenger) Version() string
type MiuiBrowser ¶
type MiuiBrowser struct {
// contains filtered or unexported fields
}
func NewMiuiBrowser ¶
func NewMiuiBrowser(userAgent string) *MiuiBrowser
func (*MiuiBrowser) Match ¶
func (m *MiuiBrowser) Match() bool
func (*MiuiBrowser) Name ¶
func (m *MiuiBrowser) Name() string
func (*MiuiBrowser) Version ¶
func (m *MiuiBrowser) Version() string
type PaleMoon ¶
type PaleMoon struct {
// contains filtered or unexported fields
}
func NewPaleMoon ¶
type SamsungBrowser ¶
type SamsungBrowser struct {
// contains filtered or unexported fields
}
func NewSamsungBrowser ¶
func NewSamsungBrowser(userAgent string) *SamsungBrowser
func (*SamsungBrowser) Match ¶
func (s *SamsungBrowser) Match() bool
func (*SamsungBrowser) Name ¶
func (s *SamsungBrowser) Name() string
func (*SamsungBrowser) Version ¶
func (s *SamsungBrowser) Version() string
type Snapchat ¶
type Snapchat struct {
// contains filtered or unexported fields
}
func NewSnapchat ¶
type SogouBrowser ¶
type SogouBrowser struct {
// contains filtered or unexported fields
}
func NewSogouBrowser ¶
func NewSogouBrowser(userAgent string) *SogouBrowser
func (*SogouBrowser) Match ¶
func (s *SogouBrowser) Match() bool
func (*SogouBrowser) Name ¶
func (s *SogouBrowser) Name() string
func (*SogouBrowser) Version ¶
func (s *SogouBrowser) Version() string
type UCBrowser ¶
type UCBrowser struct {
// contains filtered or unexported fields
}
func NewUCBrowser ¶
type VivoBrowser ¶
type VivoBrowser struct {
// contains filtered or unexported fields
}
func NewVivoBrowser ¶
func NewVivoBrowser(userAgent string) *VivoBrowser
func (*VivoBrowser) Match ¶
func (v *VivoBrowser) Match() bool
func (*VivoBrowser) Name ¶
func (v *VivoBrowser) Name() string
func (*VivoBrowser) Version ¶
func (v *VivoBrowser) Version() string
type YaaniBrowser ¶
type YaaniBrowser struct {
// contains filtered or unexported fields
}
func NewYaaniBrowser ¶
func NewYaaniBrowser(userAgent string) *YaaniBrowser
func (*YaaniBrowser) Match ¶
func (y *YaaniBrowser) Match() bool
func (*YaaniBrowser) Name ¶
func (y *YaaniBrowser) Name() string
func (*YaaniBrowser) Version ¶
func (y *YaaniBrowser) Version() string
Source Files ¶
- alipay.go
- base.go
- black_berry.go
- chrome.go
- duck_duck_go.go
- edge.go
- electron.go
- gsa.go
- huawei_browser.go
- instagram.go
- internet_explorer.go
- konqueror.go
- maxthon.go
- micro_messenger.go
- miui_browser.go
- nokia.go
- opera.go
- otter.go
- pale_moon.go
- puffin.go
- qq.go
- safari.go
- samsung_browser.go
- snapchat.go
- sogou_browser.go
- sputnik.go
- uc_browser.go
- unknown.go
- vivo_browser.go
- weibo.go
- yaani_browser.go
- yandex.go
Click to show internal directories.
Click to hide internal directories.