This commit is contained in:
oneao committed 2025-11-24 17:31:41 +08:00
1 parent a917be08d1
commit a9ea500cd4
12 files changed
+18209 -21

No files matched your search

+10 -1
View File
@@ -5,8 +5,8 @@ import (
"cn/oneao/base-go/db"
"cn/oneao/base-go/log"
"cn/oneao/base-go/utils/idgen"
"github.com/cloudwego/hertz/pkg/app/server"
"github.com/cloudwego/hertz/pkg/common/hlog"
"github.com/hertz-contrib/requestid"
)
@@ -29,6 +29,15 @@ func main() {
log.InitLog()
type User struct {
Name string
Age int
}
u := User{"tom", 20}
hlog.Info(u)
register(h)
h.Spin()
}