feat(Go-Tool):2020/11/23:修改项目案例(按照一定规则对一组数据进行排序分组)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user