feat(Go-Tool):2020/11/23:修改项目案例(按照一定规则对一组数据进行排序分组)

This commit is contained in:
Huangzj
2020-11-23 11:00:36 +08:00
parent 179e5f6a31
commit 333d7a5d66
47 changed files with 2851 additions and 1469 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ package ProgressTest
import (
"Go-Tool/util/file"
"Go-Tool/util/jsonEnhance"
"encoding/json"
)
type DeliverList struct {
@@ -24,6 +24,6 @@ type Deliver struct {
func MakeData() DeliverList {
var deliver DeliverList
content, _ := file.ReadJsonFile("F:\\Go_BySelf\\src\\Go-Tool\\ProgressTest\\deliverData.json")
jsonEnhance.UnmarshalFromString(content, &deliver)
_ = json.Unmarshal([]byte(content), &deliver)
return deliver
}