update go mod

This commit is contained in:
2023-08-11 15:25:18 +08:00
parent f87b2d08c2
commit 4bf4d84db4
3 changed files with 14 additions and 4 deletions

View File

@ -10,10 +10,10 @@ package json_tool
import (
"encoding/json"
"fmt"
"git.zhangdeman.cn/zhangdeman/wrapper"
"reflect"
"strings"
"git.zhangdeman.cn/zhangdeman/util"
"github.com/pkg/errors"
"github.com/tidwall/gjson"
@ -223,7 +223,7 @@ func (df *DataFilter) dealDiffArr(diffArr []string) string {
if len(jsonResultList) == 0 {
return ""
}
newPath := util.String.GenRandom("", 8)
newPath := wrapper.StringFromRandom(8, "").Value()
var result map[string]interface{}
_ = json.Unmarshal([]byte(df.source), &result)
JSONObject, _ := gabs.Consume(result)