blob: 1d4516932638efdeafdb721f504aec5e167a53af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package types
type Suggestion struct {
// value is the thing that we're matching on and the thing that will be submitted if you select the suggestion
Value string
// label is what is actually displayed so it can e.g. contain color
Label string
}
// Conforming to the HasID interface, which is needed for list contexts
func (self *Suggestion) ID() string {
return self.Value
}
|