Documentation ¶
Index ¶
- type Cli
- func (u Cli) Bool(key string) bool
- func (u Cli) Duration(key string) time.Duration
- func (u Cli) GlobalBool(key string) bool
- func (u Cli) GlobalInt(key string) int
- func (u Cli) GlobalInt64(key string) int64
- func (u Cli) GlobalInt64Slice(key string) []int64
- func (u Cli) GlobalIntSlice(key string) []int
- func (u Cli) GlobalString(key string) string
- func (u Cli) GlobalStringSlice(key string) []string
- func (u Cli) Int(key string) int
- func (u Cli) Int64(key string) int64
- func (u Cli) Int64Slice(key string) []int64
- func (u Cli) IntSlice(key string) []int
- func (u Cli) IsSet(key string) bool
- func (u Cli) Set(Key string, value interface{})
- func (u Cli) String(key string) string
- func (u Cli) StringSlice(key string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
func (Cli) GlobalBool ¶
func (Cli) GlobalInt64 ¶
func (Cli) GlobalInt64Slice ¶
func (Cli) GlobalIntSlice ¶
func (Cli) GlobalString ¶
func (Cli) GlobalStringSlice ¶
func (Cli) Int64Slice ¶
func (Cli) Set ¶
Set allows to set any kinds of value with given key. The type of set value should be matched with the returned type of GetXXX function.
func (Cli) StringSlice ¶
Click to show internal directories.
Click to hide internal directories.