package
2.1.1+incompatible
Repository: https://github.com/luyingjie/utils.git
Documentation: pkg.go.dev

# Functions

AutoRun automatically recognizes and executes the callback function by value of index 0 (the first console parameter).
BindHandle registers callback function <f> with <cmd>.
BindHandle registers callback function with map <m>.
BuildOptions builds the options as string.
No description provided by the author
No description provided by the author
No description provided by the author
ContainsOpt checks whether option named <name> exist in the arguments.
GetArg returns the argument at <index>.
GetArgAll returns all parsed arguments.
GetArgVar returns the argument at <index> as vvar.Var.
GetOpt returns the option value named <name>.
GetOptAll returns all parsed options.
GetOptVar returns the option value named <name> as vvar.Var.
Parse creates and returns a new Parser with os.Args and supported options.
ParseWithArgs creates and returns a new Parser with given arguments and supported options.
RunHandle executes the callback function registered by <cmd>.
Scan prints <info> to stdout, reads and returns user input, which stops by '\n'.
Scanf prints <info> to stdout with <format>, reads and returns user input, which stops by '\n'.

# Structs

Parser for arguments.