Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Default is the UARand with default settings. Default = New( rand.New( rand.NewSource(time.Now().UnixNano()), ), ) )
View Source
var ( // UserAgents is a list of browser and bots user agents. UserAgents = []string{}/* 1280 elements not displayed */ )
Functions ¶
Types ¶
type Randomizer ¶
Randomizer represents some entity which could provide us an entropy.
type UARand ¶
type UARand struct { Randomizer UserAgents []string // contains filtered or unexported fields }
UARand describes the user agent randomizer settings.
func New ¶
func New(r Randomizer) *UARand
New return UserAgent randomizer settings with default user-agents list
func NewWithCustomList ¶
NewWithCustomList return UserAgent randomizer settings with custom user-agents list
Click to show internal directories.
Click to hide internal directories.