Browse Source

Update README.md

add code  to c.String
betahu 9 years ago
parent
commit
bf5b09cc57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ginS/README.md

+ 1 - 1
ginS/README.md

@@ -11,7 +11,7 @@ import (
 )
 
 func main() {
-	ginS.GET("/", func(c *gin.Context) { c.String("Hello World") })
+	ginS.GET("/", func(c *gin.Context) { c.String(200, "Hello World") })
 	ginS.Run()
 }
 ```