WithEnableAmend returns an Option that sets the isAmend field of a config object to the given value.
(val bool)
| 37 | |
| 38 | // WithEnableAmend returns an Option that sets the isAmend field of a config object to the given value. |
| 39 | func WithEnableAmend(val bool) Option { |
| 40 | return optionFunc(func(c *config) { |
| 41 | c.isAmend = val |
| 42 | }) |
| 43 | } |
| 44 | |
| 45 | // config is a struct that stores configuration options for the instrumentation. |
| 46 | type config struct { |
no test coverage detected