Documentation ¶
Index ¶
- Variables
- func Apple(userAgent *UserAgent) bool
- func Bot(userAgent *UserAgent) bool
- func Chrome(userAgent *UserAgent) bool
- func Computer(userAgent *UserAgent) bool
- func ContainsTags(userAgent *UserAgent, tags ...string) bool
- func ContainsTagsAny(userAgent *UserAgent, tags ...string) bool
- func GoogleBot(userAgent *UserAgent) bool
- func Legacy(userAgent *UserAgent) bool
- func Mobile(userAgent *UserAgent) bool
- func Mozilla(userAgent *UserAgent) bool
- func Safari(userAgent *UserAgent) bool
- func Windows(userAgent *UserAgent) bool
- type Filter
- type UserAgent
Constants ¶
This section is empty.
Variables ¶
View Source
var FilterMap map[string]Filter
FilterMap contains filter and its respective function signature
View Source
var UserAgents []*UserAgent
UserAgents of the package
Functions ¶
func ContainsTags ¶
ContainsTags returns true if the user agent contains all provided tags
func ContainsTagsAny ¶
ContainsTagsAny returns true if the user agent contains any of the provided tags
Types ¶
type UserAgent ¶
UserAgent with tags
func PickRandom ¶ added in v0.0.33
func PickRandom() *UserAgent
func PickWithFilters ¶
Pick n items randomly for the available ones with optional filtering
Click to show internal directories.
Click to hide internal directories.