selection

package
v1.97.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Selection)

func WithFiltering

func WithFiltering(v bool) Option

func WithPrompt

func WithPrompt(prompt string) Option

type Selection

type Selection struct {
	// contains filtered or unexported fields
}

func New

func New(options []string, opts ...Option) *Selection

func (*Selection) Select

func (s *Selection) Select() (string, error)

Jump to

Keyboard shortcuts

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