This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
modikai-dtool/utils/output_utils.go
2023-06-16 19:33:03 +08:00

16 lines
253 B
Go

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))
}