Upgrade gin-gonic to latest master, fix compatibility issues

This commit is contained in:
Andrey Smirnov
2017-09-28 00:33:59 +03:00
parent ff8e4a8659
commit 3756db2491
282 changed files with 71226 additions and 3160 deletions
+4 -3
View File
@@ -2,6 +2,7 @@ package hello
import (
"net/http"
"github.com/gin-gonic/gin"
)
@@ -11,13 +12,13 @@ func init() {
r := gin.New()
// Define your handlers
r.GET("/", func(c *gin.Context){
r.GET("/", func(c *gin.Context) {
c.String(200, "Hello World!")
})
r.GET("/ping", func(c *gin.Context){
r.GET("/ping", func(c *gin.Context) {
c.String(200, "pong")
})
// Handle all requests using net/http
http.Handle("/", r)
}
}