mirror of
https://gitee.com/johng/gf
synced 2026-07-01 11:29:48 +08:00
17 lines
259 B
Go
17 lines
259 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/frame/g"
|
|
"github.com/gogf/gf/os/glog"
|
|
)
|
|
|
|
func main() {
|
|
glog.Debug(g.Map{"uid": 100, "name": "john"})
|
|
|
|
type User struct {
|
|
Uid int `json:"uid"`
|
|
Name string `json:"name"`
|
|
}
|
|
glog.Debug(User{100, "john"})
|
|
}
|