Documentation ¶
Overview ¶
Package gcmd provides console operations, like options/values reading and command running.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Option = &gCmdOption{} // Console options.
View Source
var Value = &gCmdValue{} // Console values.
Functions ¶
func AutoRun ¶
func AutoRun()
AutoRun automatically recognizes and executes the callback function by value of index 0 (the first console parameter).
func BindHandle ¶
func BindHandle(cmd string, f func())
BindHandle registers callback function <f> with <cmd>.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.