u
This commit is contained in:
1 parent
a917be08d1
commit
a9ea500cd4
12 files changed
+18209
-21
No files matched your search
@@ -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()
|
||||
}
|
||||
Reference in new issue
Block a user