Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = map[CommandName]*Command{ COMMAND_HELP: { Name: COMMAND_HELP, Description: "Some help", Action: printHelp, }, COMMAND_EXIT: { Name: COMMAND_EXIT, Description: "", Action: nil, }, }
Functions ¶
Types ¶
type Command ¶
type Command struct {
Name CommandName
Description string
Action func() error
}
type CommandName ¶
type CommandName string
const ( COMMAND_HELP CommandName = "help" COMMAND_EXIT CommandName = "exit" )
Click to show internal directories.
Click to hide internal directories.