newConfig creates a new config for the client.
(opts ...Option)
| 99 | |
| 100 | // newConfig creates a new config for the client. |
| 101 | func newConfig(opts ...Option) config { |
| 102 | cfg := config{log: log.Println, hooks: &hooks{}, inters: &inters{}} |
| 103 | cfg.options(opts...) |
| 104 | return cfg |
| 105 | } |
| 106 | |
| 107 | // options applies the options on the config object. |
| 108 | func (c *config) options(opts ...Option) { |
no test coverage detected
searching dependent graphs…