console

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	Input *bufio.Reader
}

func New

func New() *Console

func (*Console) Prompt

func (c *Console) Prompt(ask string, args ...interface{}) bool

func (*Console) PromptInt

func (c *Console) PromptInt(ask string, args ...interface{}) int

func (*Console) PromptIntN

func (c *Console) PromptIntN(ask string, args ...interface{}) (result int)

func (*Console) PromptIntP

func (c *Console) PromptIntP(ask string, args ...interface{}) (result int)

func (*Console) PromptY

func (c *Console) PromptY(ask string, args ...interface{}) bool

func (*Console) Scanln

func (c *Console) Scanln(ask string, args ...interface{}) (string, error)

Jump to

Keyboard shortcuts

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