mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
improve MapDeep function for package gconv; improve gjson.New function for loading struct parameter
This commit is contained in:
@ -74,7 +74,7 @@ func NewWithTag(data interface{}, tags string, safe ...bool) *Json {
|
||||
i := interface{}(nil)
|
||||
// Note that it uses Map function implementing the converting.
|
||||
// Note that it here should not use MapDeep function if you really know what it means.
|
||||
i = gconv.Map(data, tags)
|
||||
i = gconv.MapDeep(data, tags)
|
||||
j = &Json{
|
||||
p: &i,
|
||||
c: byte(gDEFAULT_SPLIT_CHAR),
|
||||
|
||||
Reference in New Issue
Block a user