widgets

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Unlicense Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInputCancelled = fmt.Errorf("input cancelled by user")

Functions

func Confirm

func Confirm(msg string) (bool, error)

Confirm displays a yes/no dialog with the given message. If "Yes" is selected, true is returned.

func Input

func Input(msg string) (string, error)

func ListSelect

func ListSelect(msg string, options []string) (int, string, error)

func MultiSelect

func MultiSelect(msg string, options []string) ([]int, []string, error)

func PasswordInput

func PasswordInput(msg string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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