Documentation ¶
Index ¶
- type Parser
- type RuneTrie
- type UserAgent
- func (ua UserAgent) GetBrowser() string
- func (ua UserAgent) GetDevice() string
- func (ua UserAgent) GetMajorVersion() string
- func (ua UserAgent) GetOS() string
- func (ua UserAgent) GetVersion() string
- func (ua UserAgent) IsBot() bool
- func (ua UserAgent) IsDesktop() bool
- func (ua UserAgent) IsMobile() bool
- func (ua UserAgent) IsTV() bool
- func (ua UserAgent) IsTablet() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuneTrie ¶
type RuneTrie struct {
// contains filtered or unexported fields
}
RuneTrie is a trie of runes with string keys and interface{} values.
type UserAgent ¶
type UserAgent struct {
// contains filtered or unexported fields
}
func (UserAgent) GetBrowser ¶
GetBrowser returns the browser name. If no browser is found, it returns an empty string.
func (UserAgent) GetMajorVersion ¶
GetMajorVersion returns the major version of the browser. If no version is found, it returns an empty string.
func (UserAgent) GetOS ¶
GetOS returns the operating system name. If no OS is found, it returns an empty string.
func (UserAgent) GetVersion ¶
GetVersion returns the browser version. If no version is found, it returns an empty string.
Click to show internal directories.
Click to hide internal directories.