prompt

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package prompt reads and returns standard input from the user.

Index

Constants

This section is empty.

Variables

View Source
var ErrReader = errors.New("reader io cannot be nil")

Functions

func Read added in v1.11.0

func Read(r io.Reader) (string, error)

Read and trim the reader and return the results.

func YN

func YN(w io.Writer, s string, defaultY bool) (bool, error)

YN asks the user for a yes or no input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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