mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
add package gkvdb; add kvdb storage feature for ghttp.Server
This commit is contained in:
@ -73,6 +73,11 @@ func (j *Json) GetVar(pattern string, def ...interface{}) *gvar.Var {
|
||||
return gvar.New(j.Get(pattern, def...))
|
||||
}
|
||||
|
||||
// GetVars returns []*gvar.Var with value by given <pattern>.
|
||||
func (j *Json) GetVars(pattern string, def ...interface{}) []*gvar.Var {
|
||||
return gvar.New(j.Get(pattern, def...)).Vars()
|
||||
}
|
||||
|
||||
// GetMap gets the value by specified <pattern>,
|
||||
// and converts it to map[string]interface{}.
|
||||
func (j *Json) GetMap(pattern string, def ...interface{}) map[string]interface{} {
|
||||
|
||||
Reference in New Issue
Block a user