This commit is contained in:
hoteas 2019-02-12 09:37:59 +00:00
parent c90bb1cd84
commit c2341b2e6c

View File

@ -17,13 +17,9 @@ func main() {
appIns := hotime.Application{}
i := 0
appIns.SetConnectListener(func(context *hotime.Context) bool {
fmt.Println(i)
i++
fmt.Println(context.HandlerStr+time.Now().Format(" 2006-01-02 15:04 ")+hotime.Substr(context.Req.RemoteAddr,0,strings.Index(context.Req.RemoteAddr,":")))
//this.HandlerStr = "/test.html"
return true
})