2020-07-02 18:09:48 +03:00
|
|
|
package selector
|
|
|
|
|
|
|
|
// Options used to configure a selector
|
|
|
|
type Options struct{}
|
|
|
|
|
|
|
|
// Option updates the options
|
|
|
|
type Option func(*Options)
|
|
|
|
|
|
|
|
// SelectOptions used to configure selection
|
2020-08-18 00:44:45 +03:00
|
|
|
type SelectOptions struct{}
|
2020-07-02 18:09:48 +03:00
|
|
|
|
|
|
|
// SelectOption updates the select options
|
|
|
|
type SelectOption func(*SelectOptions)
|
|
|
|
|
|
|
|
// NewSelectOptions parses select options
|
|
|
|
func NewSelectOptions(opts ...SelectOption) SelectOptions {
|
|
|
|
var options SelectOptions
|
|
|
|
for _, o := range opts {
|
|
|
|
o(&options)
|
|
|
|
}
|
|
|
|
|
|
|
|
return options
|
|
|
|
}
|