prompt

package
v1.92.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package prompt provides a simple way to prompt the user for input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func YesNo

func YesNo(msg string, dflt bool) bool

YesNo takes a question and prompts the user to answer the question with a yes or no. It appends a y/n to the message.

If there is no TTY on both Stdin and Stdout, assume that we're in a script and return the dflt result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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