Documentation ¶
Index ¶
- func Get(opt *Option, pattern string, defaultValue ...any) (*gvar.Var, error)
- func GetBool(opt *Option, pattern string, defaultValue ...bool) (bool, error)
- func GetBytes(opt *Option, pattern string, defaultValue ...[]byte) ([]byte, error)
- func GetDuration(opt *Option, pattern string, defaultValue ...time.Duration) (time.Duration, error)
- func GetFloat32(opt *Option, pattern string, defaultValue ...float32) (float32, error)
- func GetFloat32s(opt *Option, pattern string, defaultValue ...[]float32) ([]float32, error)
- func GetFloat64(opt *Option, pattern string, defaultValue ...float64) (float64, error)
- func GetFloat64s(opt *Option, pattern string, defaultValue ...[]float64) ([]float64, error)
- func GetInt(opt *Option, pattern string, defaultValue ...int) (int, error)
- func GetInt16(opt *Option, pattern string, defaultValue ...int16) (int16, error)
- func GetInt32(opt *Option, pattern string, defaultValue ...int32) (int32, error)
- func GetInt64(opt *Option, pattern string, defaultValue ...int64) (int64, error)
- func GetInt8(opt *Option, pattern string, defaultValue ...int8) (int8, error)
- func GetInterface(opt *Option, pattern string, defaultValue ...interface{}) (interface{}, error)
- func GetInts(opt *Option, pattern string, defaultValue ...[]int) ([]int, error)
- func GetMap(opt *Option, pattern string, defaultValue ...map[string]interface{}) (map[string]interface{}, error)
- func GetMapStrAny(opt *Option, pattern string, defaultValue ...map[string]interface{}) (map[string]interface{}, error)
- func GetMapStrStr(opt *Option, pattern string, defaultValue ...map[string]string) (map[string]string, error)
- func GetMapStrVar(opt *Option, pattern string, defaultValue ...map[string]*gvar.Var) (map[string]*gvar.Var, error)
- func GetMaps(opt *Option, pattern string, defaultValue ...[]map[string]interface{}) ([]map[string]interface{}, error)
- func GetSlice(opt *Option, pattern string, defaultValue ...[]interface{}) ([]interface{}, error)
- func GetStr(opt *Option, pattern string, defaultValue ...string) (string, error)
- func GetStrs(opt *Option, pattern string, defaultValue ...[]string) ([]string, error)
- func GetStructs(opt *Option, pattern string, pointer any, m map[string]string, ...) error
- func GetTime(opt *Option, pattern string, format string, defaultValue ...map[any]any) *gtime.Time
- func GetUint16(opt *Option, pattern string, defaultValue ...uint16) (uint16, error)
- func GetUint32(opt *Option, pattern string, defaultValue ...uint32) (uint32, error)
- func GetUint64(opt *Option, pattern string, defaultValue ...uint64) (uint64, error)
- func GetUint8(opt *Option, pattern string, defaultValue ...uint8) (uint8, error)
- func GetUints(opt *Option, pattern string, defaultValue ...[]uint) ([]uint, error)
- func GetVal(opt *Option, pattern string, defaultValue ...interface{}) (interface{}, error)
- func Scan(opt *Option, pattern string, pointer interface{}, m map[string]string, ...) error
- func Struct(opt *Option, pattern string, pointer interface{}, m map[string]string, ...) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDuration ¶
func GetFloat32 ¶
func GetFloat32s ¶
func GetFloat64 ¶
func GetFloat64s ¶
func GetInterface ¶
func GetMapStrAny ¶
func GetMapStrStr ¶
func GetMapStrVar ¶
func GetStructs ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.