Upgrade gin-gonic to latest master, fix compatibility issues

This commit is contained in:
Andrey Smirnov committed 2017-09-28 00:33:59 +03:00
1 parent ff8e4a8659
commit 3756db2491
282 files changed
+71223 -3157

No files matched your search

+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)
}
}