()
| 5 | type pickerOptions []pickerOption |
| 6 | |
| 7 | func (p pickerOptions) labels() []string { |
| 8 | result := make([]string, 0, len(p)) |
| 9 | for _, o := range p { |
| 10 | result = append(result, o.label) |
| 11 | } |
| 12 | return result |
| 13 | } |
| 14 | |
| 15 | func (p pickerOptions) defaultLabel() string { |
| 16 | if len(p) > 0 { |
no outgoing calls