mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-15 04:57:07 +08:00
Merge f39b692fc522849b3fc5a63213043b46193d1914 into c3abaf9afcd167475951249d5a406ba10b24a1d9
This commit is contained in:
commit
38bb20bbcf
@ -392,7 +392,7 @@ func main() {
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
// note than you are using the copied context "c_cp", IMPORTANT
|
||||
log.Println("Done! in path " + c_cp.Req.URL.Path)
|
||||
log.Println("Done! in path " + c_cp.Request.URL.Path)
|
||||
}()
|
||||
})
|
||||
|
||||
@ -402,7 +402,7 @@ func main() {
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
// since we are NOT using a goroutine, we do not have to copy the context
|
||||
log.Println("Done! in path " + c.Req.URL.Path)
|
||||
log.Println("Done! in path " + c.Request.URL.Path)
|
||||
})
|
||||
|
||||
// Listen and server on 0.0.0.0:8080
|
||||
|
Loading…
x
Reference in New Issue
Block a user