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

16 lines
253 B
Go
Raw Normal View History

2023-06-16 18:55:18 +08:00
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))
}