Gin Go Web Framework
===
感覺我不太喜歡iris的MVC模式,感覺太重了,還是輕量級的框架適合我一點
現在就開始Gin的學習之旅吧!
課程代碼:[https://github.com/dollarkillerx/Gin-Study](https://github.com/dollarkillerx/Gin-Study)
### 課程環境:
- Ubuntu18.4
- Go1.12.5
- Ide: Goland
- vgo
### 老規矩先來一個HelloWorld
`vgo get -u github.com/gin-gonic/gin`
```
package main
import "github.com/gin-gonic/gin"
func main() {
app := gin.Default()
app.GET("/", func(ctx *gin.Context) {
ctx.JSON(200,gin.H{
"message":"Hello World",
})
})
app.Run(":8085")
}
```
### 原理
