Pārlūkot izejas kodu

Merge branch 'Req-to-Request' of https://github.com/yuyabee/gin into develop

Manu Mtz-Almeida 11 gadi atpakaļ
vecāks
revīzija
7963d018a8
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -425,7 +425,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)
 		}()
 	})
 
@@ -435,7 +435,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