applyBatchOptions creates an options struct from the given Option functions.
(opts ...Option)
| 48 | |
| 49 | // applyBatchOptions creates an options struct from the given Option functions. |
| 50 | func applyBatchOptions(opts ...Option) *options { |
| 51 | o := &options{} |
| 52 | for _, opt := range opts { |
| 53 | opt(o) |
| 54 | } |
| 55 | return o |
| 56 | } |