Documentation ¶
Index ¶
Constants ¶
View Source
const ( Cursor = "x" Prompt = "> " Selected = "x" Unselected = " " )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Choices ¶
type Choices []Choice
Choices is a slice of string maps to satisfy the fuzzy.Source interface
func MapToChoices ¶
func MapToChoices[K comparable, V any, M ~map[K]V](c []M) Choices
MapToChoices converts a slice of maps to Choices. Only the first item in the map is collected.
func SliceToChoices ¶
SliceToChoices converts a generic slice to Choices. Values are converted to a string using fmt.Sprint and the key is the zero value.
Click to show internal directories.
Click to hide internal directories.