Documentation
¶
Overview ¶
Package cli provides helpers to work with command-line interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyFilename = errors.New("cli: empty filename") ErrInsufficientArguments = errors.New("cli: insufficient command-line arguments") ErrInvalidFilename = errors.New("cli: invalid filename") ErrParseFloat = errors.New("cli: failed to parse float") ErrReadString = errors.New("cli: failed to read string") ErrTooManyArguments = errors.New("cli: too many arguments") )
Functions ¶
func Filename ¶
Filename returns the value of args[1] as the required filename, os.Args is required to pass in args.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.