From c2341b2e6ca42b1c97591475ad2a4e8ff44424cb Mon Sep 17 00:00:00 2001 From: hoteas Date: Tue, 12 Feb 2019 09:37:59 +0000 Subject: [PATCH] --- example/main.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 })