Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSrcTooLarge = fmt.Errorf("source is too large")
Functions ¶
func ConfirmInput ¶
ConfirmInput renders a confirm console input
Types ¶
type ConfirmInputReader ¶
ConfirmInputReader describes a function for reading user confirmation
type InputReader ¶
type InputReader func(title string, args *InputReaderArgs) (string, error)
InputReader describes a function for reading input from stdin
type InputReaderArgs ¶
type ReadSeekerCloser ¶
type ReadSeekerCloser interface { io.ReadSeeker io.Closer }
func LimitedReadToTmpFile ¶
func LimitedReadToTmpFile(src io.Reader, limit int64) (ReadSeekerCloser, error)
LimitedReadToTmpFile copies n bytes from src into a temporary file. It returns ErrSizeTooLarge if the reader contains more than maxSize and EOF is src has contains less bytes than maxSize. The caller is responsible for closing the returned reader.
Click to show internal directories.
Click to hide internal directories.