[Go-server] Fix formatting of go-server generated code (#7162)

* Add missing go-server petstore batch script

* Make go-server confirm to gofmt
This commit is contained in:
Ben Wells
2017-12-14 16:04:48 +00:00
committed by William Cheng
parent e70bdf17f2
commit 2e348b27f7
14 changed files with 66 additions and 74 deletions

View File

@@ -1,6 +1,9 @@
package main
import (
"log"
"net/http"
// WARNING!
// Change this to a fully-qualified import path
// once you place this file into your project.
@@ -9,14 +12,12 @@ import (
// sw "github.com/myname/myrepo/go"
//
sw "./go"
"log"
"net/http"
)
func main() {
log.Printf("Server started")
router := sw.NewRouter()
log.Fatal(http.ListenAndServe(":8080", router))
}