Merge pull request #535 from appleboy/patch-1

fix: example format.
This commit is contained in:
Javier Provecho Fernandez 2016-02-20 01:46:12 +01:00
commit b3878c2465
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
package hello
import (
"net/http"
"github.com/gin-gonic/gin"
"net/http"
)
// This function's name is a must. App Engine uses it to drive the requests properly.
@ -11,10 +11,10 @@ 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")
})