Documentation ¶
Index ¶
Constants ¶
View Source
const LineSep = "\n"
LineSep is the separator for windows or unix systems
Variables ¶
View Source
var ( // Errs are error returned by input functions. // It's useful for handling error from outside of input functions. ErrEmpty = errors.New("default value is not provided but input is empty") ErrNotNumber = errors.New("input must be number") ErrOutOfRange = errors.New("input is out of range") ErrInterrupted = errors.New("interrupted") )
Functions ¶
Types ¶
type UI ¶
type UI struct { Queries []*Query Writer io.Writer Reader io.Reader // contains filtered or unexported fields }
func DefaultUI ¶
func DefaultUI() *UI
DefaultUI returns default UI. It outputs to stdout and intputs from stdin.
func (*UI) AddQueries ¶
type ValidateFunc ¶
Click to show internal directories.
Click to hide internal directories.