mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-17 05:42:09 +08:00
Update README.md
This commit is contained in:
parent
e2212d40c6
commit
c19da25a21
10
README.md
10
README.md
@ -1,5 +1,5 @@
|
||||
|
||||
#Gin Web Framework
|
||||
# Gin Web Framework
|
||||
|
||||
<img align="right" src="https://raw.githubusercontent.com/gin-gonic/gin/master/logo.jpg">
|
||||
[](https://travis-ci.org/gin-gonic/gin)
|
||||
@ -133,7 +133,7 @@ func main() {
|
||||
func main() {
|
||||
router := gin.Default()
|
||||
|
||||
// This handler will match /user/john but will not match neither /user/ or /user
|
||||
// This handler will match /user/john but will not match /user/ or /user
|
||||
router.GET("/user/:name", func(c *gin.Context) {
|
||||
name := c.Param("name")
|
||||
c.String(http.StatusOK, "Hello %s", name)
|
||||
@ -372,7 +372,7 @@ func main() {
|
||||
```
|
||||
|
||||
|
||||
###Multipart/Urlencoded binding
|
||||
### Multipart/Urlencoded binding
|
||||
```go
|
||||
package main
|
||||
|
||||
@ -450,7 +450,7 @@ func main() {
|
||||
}
|
||||
```
|
||||
|
||||
####Serving static files
|
||||
#### Serving static files
|
||||
|
||||
```go
|
||||
func main() {
|
||||
@ -464,7 +464,7 @@ func main() {
|
||||
}
|
||||
```
|
||||
|
||||
####HTML rendering
|
||||
#### HTML rendering
|
||||
|
||||
Using LoadHTMLTemplates()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user