Apply applies the given options to the Config object.
(opts ...Option)
| 102 | |
| 103 | // Apply applies the given options to the Config object. |
| 104 | func (c *Config) Apply(opts ...Option) error { |
| 105 | for _, opt := range opts { |
| 106 | err := opt(c) |
| 107 | if err != nil { |
| 108 | return err |
| 109 | } |
| 110 | } |
| 111 | return nil |
| 112 | } |
| 113 | |
| 114 | // TimeTruncate sets the time duration to truncate time.Time values in |
| 115 | // query parameters. |
no outgoing calls