Documentation ¶
Overview ¶
copyright 2016 CreatorQsF, de-liKeR MIT License `cliset` package provides some useful tools for developing cli tool in Golang.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LowRegSubcmd ¶
func LowRegSubcmd(subcmd, flagName string)
func LowSubcmd ¶
Subcmd returns 2 values, first type is bool and second one is int. First return value will be true when given subcommand name in argument is setted. Second value returns the number of nth element of `os.Args` which is value of builtin package `os` If there is no matched subcommand, second value will be 0. So first you need to check first bool value.
Types ¶
type OutMessage ¶
type OutMessage struct {
Body []string
}
Click to show internal directories.
Click to hide internal directories.