mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-15 21:06:39 +08:00
Update README.md
add code to c.String
This commit is contained in:
parent
e0334c01d0
commit
63f05bfdc3
@ -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()
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user