diff --git a/example/main.go b/example/main.go index bcd0514..e80b247 100644 --- a/example/main.go +++ b/example/main.go @@ -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 })