input

package
v0.93.0-pre Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Terminal *terminal.Terminal

Terminal is a terminal used for input. If `nil`, stdin is used.

Functions

func ReadLine

func ReadLine(w io.Writer, prompt string) (string, error)

ReadLine reads line from the input without trailing '\n'

func ReadPassword

func ReadPassword(w io.Writer, prompt string) (string, error)

ReadPassword reads user password with prompt.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳