mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
16 lines
190 B
Go
16 lines
190 B
Go
|
package dynamic
|
||
|
|
||
|
type (
|
||
|
Options struct {
|
||
|
proxy string
|
||
|
}
|
||
|
|
||
|
Option func(opts *Options)
|
||
|
)
|
||
|
|
||
|
func WithProxy(address string) Option {
|
||
|
return func(opts *Options) {
|
||
|
opts.proxy = address
|
||
|
}
|
||
|
}
|