WithTimeout sets the timeout for requests
(timeout time.Duration)
| 115 | |
| 116 | // WithTimeout sets the timeout for requests |
| 117 | func WithTimeout(timeout time.Duration) Option { |
| 118 | return func(opts *getterOptions) { |
| 119 | opts.timeout = timeout |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | func WithTagName(tagname string) Option { |
| 124 | return func(opts *getterOptions) { |
no outgoing calls
searching dependent graphs…