funcServerOption wraps a function that modifies serverOptions into an implementation of the ServerOption interface.
| 216 | // funcServerOption wraps a function that modifies serverOptions into an |
| 217 | // implementation of the ServerOption interface. |
| 218 | type funcServerOption struct { |
| 219 | f func(*serverOptions) |
| 220 | } |
| 221 | |
| 222 | func (fdo *funcServerOption) apply(do *serverOptions) { |
| 223 | fdo.f(do) |
nothing calls this directly
no outgoing calls
no test coverage detected