github.com/gogf/gf@v1.16.9/.example/os/glog/glog_json.go (about) 1 package main 2 3 import ( 4 "github.com/gogf/gf/frame/g" 5 ) 6 7 func main() { 8 g.Log().Debug(g.Map{"uid": 100, "name": "john"}) 9 10 type User struct { 11 Uid int `json:"uid"` 12 Name string `json:"name"` 13 } 14 g.Log().Debug(User{100, "john"}) 15 }