From 00ff808ac5f89e78d545dd83ff4bf35e09a89e1c Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 17 Feb 2016 10:45:44 +0800 Subject: [PATCH] fix: example format. --- examples/app-engine/hello.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/app-engine/hello.go b/examples/app-engine/hello.go index f5daf824..a5e17962 100644 --- a/examples/app-engine/hello.go +++ b/examples/app-engine/hello.go @@ -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,13 +11,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) -} \ No newline at end of file +}