test:load yaml for sort

This commit is contained in:
2024-03-06 19:08:15 +08:00
parent faa392fecf
commit 4fda8a86e3
2 changed files with 10 additions and 9 deletions

1
.gitignore vendored
View File

@@ -45,6 +45,7 @@ vendor
*.log *.log
*.log-* *.log-*
*.bak *.bak
*.bak*
*.exe *.exe
__debug_bin*.exe __debug_bin*.exe

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)