Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item[T any] struct { // DisplayText is what will be shown in the dmenu DisplayText string // Value is the actual data associated with this item Value T }
Item is a generic struct that can hold any type of value
type KeyValuePair ¶
KeyValuePair represents a key-value pair where both key and value are strings This is kept for backwards compatibility
func Select ¶
func Select(pairs []KeyValuePair, prompt string) (*KeyValuePair, error)
Select displays a dmenu prompt with the given keys from the key-value pairs and returns the selected key-value pair This is kept for backwards compatibility
Click to show internal directories.
Click to hide internal directories.