12 lines
145 B
Go
12 lines
145 B
Go
package commands
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
)
|
|
|
|
func PrintJSON(obj interface{}) {
|
|
txt, _ := json.Marshal(obj)
|
|
fmt.Println(string(txt))
|
|
}
|