Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgShifter ¶
type ArgShifter interface {
/*
Get the type of the current argument
*/
GetArgumentType() ArgType
/*
Get the current argument but do not shift
*/
Peek() string
/*
Get the current argument and switch to the next one
Returns: string - the argument before the shift, bool - is any argument available
*/
Shift() (string, bool)
/*
Reset the status of the argument shifter
*/
Reset()
/*
Get arguments
*/
GetArgs() []string
}
Argument shifter interface
func NewArgShifter ¶
func NewArgShifter(args []string) ArgShifter
Click to show internal directories.
Click to hide internal directories.