mirror of
https://github.com/turbot/steampipe.git
synced 2026-02-17 10:00:17 -05:00
14 lines
203 B
Go
14 lines
203 B
Go
package utils
|
|
|
|
import (
|
|
"encoding/json"
|
|
"os"
|
|
)
|
|
|
|
func DebugSpitJSON(msg string, d interface{}) {
|
|
enc := json.NewEncoder(os.Stdout)
|
|
enc.SetIndent(" ", " ")
|
|
os.Stdout.WriteString(msg)
|
|
enc.Encode(d)
|
|
}
|