newOptions returns a new options instance.
(opts ...Option)
| 48 | |
| 49 | // newOptions returns a new options instance. |
| 50 | func newOptions(opts ...Option) *options { |
| 51 | opt := &options{ |
| 52 | cellWidth: 3, |
| 53 | } |
| 54 | for _, o := range opts { |
| 55 | o.set(opt) |
| 56 | } |
| 57 | return opt |
| 58 | } |
| 59 | |
| 60 | // option implements Option. |
| 61 | type option func(*options) |