item.go 232 B

1234567891011121314151617
  1. package picker
  2. type Item struct {
  3. Text string
  4. FilterText string
  5. Reference any
  6. }
  7. type Items []Item
  8. func (is Items) String(index int) string {
  9. return is[index].FilterText
  10. }
  11. func (is Items) Len() int {
  12. return len(is)
  13. }