improve gtime.ParseTimeFromContent

This commit is contained in:
John Guo
2021-01-27 23:37:04 +08:00
parent 69e1628a0d
commit a2b322a31b
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
)
func main() {
s := g.Server()
s.Group("/", func(group *ghttp.RouterGroup) {
group.ALL("/test", func(r *ghttp.Request) {
r.Response.Writeln(1)
})
group.ALL("/test", func(r *ghttp.Request) {
r.Response.Writeln(2)
})
})
s.SetPort(8199)
s.Run()
}