Documentation ¶
Index ¶
- func EnvarBool(_default bool, _var string) bool
- func EnvarInt(_default int, _var string) int
- func EnvarInt64(_default int64, _var string) int64
- func EnvarStr(_default string, _var string) string
- func GetBool(_default bool, _var string) bool
- func GetInt(_default int, _var string) int
- func GetInt64(_default int64, _var string) int64
- func GetStr(_default string, _var string) string
- func MetaSet(name string, _default string, description, _var string) string
- func SetBool(name string, _default bool, usage, _var string) bool
- func SetIn64(name string, _default int64, usage, _var string) int64
- func SetInt(name string, _default int, usage, _var string) int
- func SetStr(name string, _default string, usage, _var string) string
- func SetvarBool(name string, _default bool, usage, _var string) bool
- func SetvarInt(name string, _default int, usage, _var string) int
- func SetvarStr(name string, _default string, usage, _var string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvarInt64 ¶ added in v0.0.177
* * This function is deprecated, use GetInt64 instead *
func GetBool ¶ added in v1.0.11
* * GetBool * @param bool _default * @param string _var * @return bool *
func GetInt ¶ added in v1.0.11
* * GetInt * @param int _default * @param string _var * @return int *
func GetInt64 ¶ added in v1.0.11
* * GetInt64 * @param int64 _default * @param string _var * @return int64 *
func GetStr ¶ added in v1.0.11
* * GetStr * @param string _default * @param string _var * @return string *
func MetaSet ¶ added in v0.0.65
* * MetaSet * @param string name * @param string _default * @param string description * @param string _var * @return string *
func SetBool ¶ added in v1.0.11
* * SetBool * @param string name * @param bool _default * @param string usage * @param string _var * @return bool *
func SetIn64 ¶ added in v1.0.11
* * SetInt64 * @param string name * @param int64 _default * @param string usage * @param string _var * @return int64 *
func SetInt ¶ added in v1.0.11
* * SetInt * @param string name * @param int _default * @param string usage * @param string _var * @return int *
func SetStr ¶ added in v1.0.11
* * SetStr * @param string name * @param string _default * @param string usage * @param string _var * @return string *
func SetvarBool ¶ added in v0.0.145
* * This function is deprecated, use SetBool instead *
Types ¶
This section is empty.