initial commit

This commit is contained in:
MDK
2023-06-16 18:55:18 +08:00
parent 9e4182bced
commit b59fbce07c
10 changed files with 439 additions and 0 deletions

15
utils/output_utils.go Normal file
View File

@@ -0,0 +1,15 @@
package utils
import (
"encoding/json"
"fmt"
)
func OutputJSON(data map[string][]string) {
jsonstr, err := json.MarshalIndent(data, "", " ")
if err != nil {
fmt.Println("JSON encoding error:", err)
return
}
fmt.Println(string(jsonstr))
}