simple cli with room APIs

This commit is contained in:
David Zhao
2020-11-03 22:01:54 -08:00
parent 925d1c653e
commit 9ebfebe2dd
8 changed files with 626 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
package commands
import (
"encoding/json"
"fmt"
)
func PrintJSON(obj interface{}) {
txt, _ := json.Marshal(obj)
fmt.Println(string(txt))
}