(opts []AgentOption)
| 18 | } |
| 19 | |
| 20 | func newOptions(opts []AgentOption) *options { |
| 21 | o := new(options) |
| 22 | for _, fn := range opts { |
| 23 | fn(o) |
| 24 | } |
| 25 | return o |
| 26 | } |
| 27 | |
| 28 | // AgentOption is the type used for variadic options in Agent methods. |
| 29 | type AgentOption func(o *options) |
no outgoing calls
no test coverage detected
searching dependent graphs…