This commit is contained in:
parent
c90bb1cd84
commit
c2341b2e6c
@ -17,13 +17,9 @@ func main() {
|
|||||||
appIns := hotime.Application{}
|
appIns := hotime.Application{}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
i := 0
|
|
||||||
|
|
||||||
appIns.SetConnectListener(func(context *hotime.Context) bool {
|
appIns.SetConnectListener(func(context *hotime.Context) bool {
|
||||||
fmt.Println(i)
|
fmt.Println(context.HandlerStr+time.Now().Format(" 2006-01-02 15:04 ")+hotime.Substr(context.Req.RemoteAddr,0,strings.Index(context.Req.RemoteAddr,":")))
|
||||||
i++
|
|
||||||
//this.HandlerStr = "/test.html"
|
//this.HandlerStr = "/test.html"
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user