1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/pkg/html/dynamic/options.go
Tim Voronov a3d3fe727d
Bug/#31 ua (#73)
* Made custom and random UA optional

* Added pirvate context keys
2018-10-07 22:18:57 -04:00

23 lines
316 B
Go

package dynamic
type (
Options struct {
proxy string
userAgent string
}
Option func(opts *Options)
)
func WithProxy(address string) Option {
return func(opts *Options) {
opts.proxy = address
}
}
func WithUserAgent(value string) Option {
return func(opts *Options) {
opts.userAgent = value
}
}