reader

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package reader provides the reader of standard input.

Index

Constants

This section is empty.

Variables

Set provides an implementation and interface for Reader.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	ReadString(prompt string) (string, error)
	ReadPassword(prompt string) (string, error)
}

type Reader

type Reader struct {
	Stdin stdio.Stdin
}

func (*Reader) ReadPassword

func (*Reader) ReadPassword(prompt string) (string, error)

ReadPassword reads a password from the stdin without echo back.

func (*Reader) ReadString

func (x *Reader) ReadString(prompt string) (string, error)

ReadString reads a string from the stdin.

Directories

Path Synopsis
Package mock_reader is a generated GoMock package.
Package mock_reader is a generated GoMock package.

Jump to

Keyboard shortcuts

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