forked from golang/hotime
This commit is contained in:
parent
c90bb1cd84
commit
c2341b2e6c
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user