12 lines
186 B
Go
12 lines
186 B
Go
package logging
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// TODO check that error
|
|
func PrettyJSON(obj interface{}) string {
|
|
bytes, _ := json.MarshalIndent(obj, "\t", "\t")
|
|
return string(bytes)
|
|
}
|