Bo-Yi Wu преди 9 години
родител
ревизия
00ff808ac5
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      examples/app-engine/hello.go

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