mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-07 12:47:50 +00:00
15 lines
200 B
Go
15 lines
200 B
Go
package util
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
)
|
|
|
|
func PrettyPrint(v interface{}) {
|
|
b, err := json.MarshalIndent(v, "", " ")
|
|
if err != nil {
|
|
fmt.Println("error:", err)
|
|
}
|
|
fmt.Print(string(b))
|
|
}
|