options

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 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 added in v0.13.0

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 added in v0.1.0

type LiteralStringer string

func (LiteralStringer) String added in v0.1.0

func (l LiteralStringer) String() string

Jump to

Keyboard shortcuts

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