prompt

package
v0.0.0-...-1af103d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(items []string, search string) []string

func FindIndex

func FindIndex(items []string, search string) int

func GetIndex

func GetIndex(items []string, index int, defaultValue string) string

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

func Pick

func Pick(options Options) (string, bool)

Types

type Options

type Options struct {
	Choices         []string
	DefaultValue    string
	Header          string
	SelectionPrefix string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL