options

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Select

func Select(msg string, opts []fmt.Stringer) (interface{}, error)

Select prompts the user which of the available options is the desired through STDIN and returns the selected one

func SelectCustom

func SelectCustom(msg string, opts []fmt.Stringer) (interface{}, error)

SelectCustom prompts the user which of the available options is the desired through STDIN and returns the selected or a custom one

Types

type LiteralStringer

type LiteralStringer string

func (LiteralStringer) String

func (l LiteralStringer) String() string

Jump to

Keyboard shortcuts

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