test:load yaml for sort

This commit is contained in:
simonzhangsz committed 2024-03-06 19:08:15 +08:00
1 parent faa392fecf
commit 4fda8a86e3
2 files changed
+10 -9

No files matched your search

+1
View File
@@ -45,6 +45,7 @@ vendor
*.log *.log
*.log-* *.log-*
*.bak *.bak
*.bak*
*.exe *.exe
__debug_bin*.exe __debug_bin*.exe
+9 -9
View File
@@ -61,15 +61,15 @@ func ReadParamConfig(fileName string) *map[string]interface{} {
mapYaml := make(map[string]interface{}) mapYaml := make(map[string]interface{})
// var node yaml.Node var node yaml.Node
// err = yaml.Unmarshal(file, &node) err = yaml.Unmarshal(file, &node)
// if err != nil { if err != nil {
// fmt.Printf("yaml.Unmarshal: %v when to struct", err) fmt.Printf("yaml.Unmarshal: %v when to struct", err)
// } }
// err = unmarshalNode(&node, &mapYaml) err = unmarshalNode(&node, &mapYaml)
// if err != nil { if err != nil {
// fmt.Println("Failed to unmarshalNode:", err) fmt.Println("Failed to unmarshalNode:", err)
// } }
// var node yaml.Node // var node yaml.Node
// err = yaml.Unmarshal(file, &node) // err = yaml.Unmarshal(file, &node)