Documentation ¶
Index ¶
- Variables
- func GetBool(key string, defaultVal bool) bool
- func GetBoolFlag(name string) bool
- func GetInt(key string, defaultVal int) int
- func GetIntFlag(name string) int
- func GetString(key string, defaultVal string) string
- func GetStringFlag(name string) string
- func NewFlagParam() *flagParam
- func ParseParams()
- func SetBoolFlag(name string, value bool, usage string)
- func SetIntFlag(name string, value int, usage string)
- func SetStringFlag(name string, value string, usage string)
- func StartConfig()
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = cfg.New("")
View Source
var ConfigDef = cfg.New("")
Functions ¶
func GetBoolFlag ¶ added in v0.1.6
func GetIntFlag ¶
func GetStringFlag ¶
func ParseParams ¶
func ParseParams()
func SetBoolFlag ¶ added in v0.1.6
SetBoolFlag register a bool params
func SetIntFlag ¶
SetIntFlag register a int params
func SetStringFlag ¶
SetStringFlag register a string params
func StartConfig ¶
func StartConfig()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.