mirror of
https://gitee.com/johng/gf
synced 2026-07-08 14:39:50 +08:00
17 lines
257 B
Go
17 lines
257 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/g"
|
|
"github.com/gogf/gf/g/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"})
|
|
}
|