Help us shape the future of Go! Take the 2026 Go Developer Survey

input

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InputYes added in v0.25.0

func InputYes(include string) bool

TODO(@tnthornton @jastang) there are possible enhancements to this. for example: reprompt if not given y/n (yes/no)

Types

type Prompter

type Prompter interface {
	Prompt(label string, sensitive bool) (string, error)
}

Prompter prompts a user for input.

func NewPrompter

func NewPrompter() Prompter

NewPrompter constructs a new prompter that uses stdin for input and stdout for output.

Jump to

Keyboard shortcuts

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