logging, config file managment, writing library dir
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package logging
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// TODO check that error
|
||||
func PrettyJSON(obj interface{}) string {
|
||||
bytes, _ := json.MarshalIndent(obj, "\t", "\t")
|
||||
return string(bytes)
|
||||
}
|
||||
Reference in New Issue
Block a user