Documentation ¶ Index ¶ Variables func ParseFlags(args []string) []string type Command func (c *Command) Execute(args []string) error type Commands func NewCommands() *Commands func (c *Commands) AddCommand(name string, f func([]string) error) func (c *Commands) Exec(args []string) error Constants ¶ This section is empty. Variables ¶ View Source var Flags = map[string]bool{"a": false} Functions ¶ func ParseFlags ¶ func ParseFlags(args []string) []string Types ¶ type Command ¶ type Command struct { Name string Args []string F func([]string) error } func (*Command) Execute ¶ func (c *Command) Execute(args []string) error type Commands ¶ type Commands struct { Commands map[string]Command } func NewCommands ¶ func NewCommands() *Commands func (*Commands) AddCommand ¶ func (c *Commands) AddCommand(name string, f func([]string) error) func (*Commands) Exec ¶ func (c *Commands) Exec(args []string) error Source Files ¶ View all Source files cmd.goflags.go Click to show internal directories. Click to hide internal directories.