matchers

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alipay

type Alipay struct {
	// contains filtered or unexported fields
}

func NewAlipay

func NewAlipay(userAgent string) *Alipay

func (*Alipay) Match

func (a *Alipay) Match() bool

func (*Alipay) Name

func (a *Alipay) Name() string

func (*Alipay) Version

func (a *Alipay) Version() string

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 Chrome

type Chrome struct {
	// contains filtered or unexported fields
}

func NewChrome

func NewChrome(userAgent string) *Chrome

func (*Chrome) Match

func (c *Chrome) Match() bool

func (*Chrome) Name

func (c *Chrome) Name() string

func (*Chrome) Version

func (c *Chrome) 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
}

func NewEdge

func NewEdge(userAgent string) *Edge

func (*Edge) Match

func (e *Edge) Match() bool

func (*Edge) Name

func (e *Edge) Name() string

func (*Edge) Version

func (e *Edge) Version() string

type Electron

type Electron struct {
	// contains filtered or unexported fields
}

func NewElectron

func NewElectron(userAgent string) *Electron

func (*Electron) Match

func (e *Electron) Match() bool

func (*Electron) Name

func (e *Electron) Name() string

func (*Electron) Version

func (e *Electron) Version() string

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

func NewInstagram(userAgent string) *Instagram

func (*Instagram) Match

func (i *Instagram) Match() bool

func (*Instagram) Name

func (i *Instagram) Name() string

func (*Instagram) Version

func (i *Instagram) Version() string

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

func NewKonqueror(userAgent string) *Konqueror

func (*Konqueror) Match

func (k *Konqueror) Match() bool

func (*Konqueror) Name

func (k *Konqueror) Name() string

func (*Konqueror) Version

func (k *Konqueror) Version() string

type Maxthon

type Maxthon struct {
	// contains filtered or unexported fields
}

func NewMaxthon

func NewMaxthon(userAgent string) *Maxthon

func (*Maxthon) Match

func (m *Maxthon) Match() bool

func (*Maxthon) Name

func (m *Maxthon) Name() string

func (*Maxthon) Version

func (m *Maxthon) Version() string

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 Nokia

type Nokia struct {
	// contains filtered or unexported fields
}

func NewNokia

func NewNokia(userAgent string) *Nokia

func (*Nokia) Match

func (n *Nokia) Match() bool

func (*Nokia) Name

func (n *Nokia) Name() string

func (*Nokia) Version

func (n *Nokia) Version() string

type Opera

type Opera struct {
	// contains filtered or unexported fields
}

func NewOpera

func NewOpera(userAgent string) *Opera

func (*Opera) Match

func (o *Opera) Match() bool

func (*Opera) Name

func (o *Opera) Name() string

func (*Opera) Version

func (o *Opera) Version() string

type Otter

type Otter struct {
	// contains filtered or unexported fields
}

func NewOtter

func NewOtter(userAgent string) *Otter

func (*Otter) Match

func (o *Otter) Match() bool

func (*Otter) Name

func (o *Otter) Name() string

func (*Otter) Version

func (o *Otter) Version() string

type PaleMoon

type PaleMoon struct {
	// contains filtered or unexported fields
}

func NewPaleMoon

func NewPaleMoon(userAgent string) *PaleMoon

func (*PaleMoon) Match

func (p *PaleMoon) Match() bool

func (*PaleMoon) Name

func (p *PaleMoon) Name() string

func (*PaleMoon) Version

func (p *PaleMoon) Version() string

type Puffin

type Puffin struct {
	// contains filtered or unexported fields
}

func NewPuffin

func NewPuffin(userAgent string) *Puffin

func (*Puffin) Match

func (p *Puffin) Match() bool

func (*Puffin) Name

func (p *Puffin) Name() string

func (*Puffin) Version

func (p *Puffin) Version() string

type QQ

type QQ struct {
	// contains filtered or unexported fields
}

func NewQQ

func NewQQ(userAgent string) *QQ

func (*QQ) Match

func (q *QQ) Match() bool

func (*QQ) Name

func (q *QQ) Name() string

func (*QQ) Version

func (q *QQ) Version() string

type Safari

type Safari struct {
	// contains filtered or unexported fields
}

func NewSafari

func NewSafari(userAgent string) *Safari

func (*Safari) Match

func (s *Safari) Match() bool

func (*Safari) Name

func (s *Safari) Name() string

func (*Safari) Version

func (s *Safari) Version() string

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

func NewSnapchat(userAgent string) *Snapchat

func (*Snapchat) Match

func (s *Snapchat) Match() bool

func (*Snapchat) Name

func (s *Snapchat) Name() string

func (*Snapchat) Version

func (s *Snapchat) Version() string

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 Sputnik

type Sputnik struct {
	// contains filtered or unexported fields
}

func NewSputnik

func NewSputnik(userAgent string) *Sputnik

func (*Sputnik) Match

func (s *Sputnik) Match() bool

func (*Sputnik) Name

func (s *Sputnik) Name() string

func (*Sputnik) Version

func (s *Sputnik) Version() string

type UCBrowser

type UCBrowser struct {
	// contains filtered or unexported fields
}

func NewUCBrowser

func NewUCBrowser(userAgent string) *UCBrowser

func (*UCBrowser) Match

func (u *UCBrowser) Match() bool

func (*UCBrowser) Name

func (u *UCBrowser) Name() string

func (*UCBrowser) Version

func (u *UCBrowser) Version() string

type Unknown

type Unknown struct {
	// contains filtered or unexported fields
}

func NewUnknown

func NewUnknown(userAgent string) *Unknown

func (*Unknown) Match

func (u *Unknown) Match() bool

func (*Unknown) Name

func (u *Unknown) Name() string

func (*Unknown) Version

func (u *Unknown) Version() string

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 Weibo

type Weibo struct {
	// contains filtered or unexported fields
}

func NewWeibo

func NewWeibo(userAgent string) *Weibo

func (*Weibo) Match

func (w *Weibo) Match() bool

func (*Weibo) Name

func (w *Weibo) Name() string

func (*Weibo) Version

func (w *Weibo) 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

type Yandex

type Yandex struct {
	// contains filtered or unexported fields
}

func NewYandex

func NewYandex(userAgent string) *Yandex

func (*Yandex) Match

func (y *Yandex) Match() bool

func (*Yandex) Name

func (y *Yandex) Name() string

func (*Yandex) Version

func (y *Yandex) Version() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL