| Index: golden/go/skiacorrectness/main.go
|
| diff --git a/golden/go/skiacorrectness/main.go b/golden/go/skiacorrectness/main.go
|
| index 3b23b3161c47f6e0b40804b5695b035521126f64..77d733894ac1c11b056b410c678eb2be49081eab 100644
|
| --- a/golden/go/skiacorrectness/main.go
|
| +++ b/golden/go/skiacorrectness/main.go
|
| @@ -3,13 +3,11 @@ package main
|
| import (
|
| "flag"
|
| "net/http"
|
| -)
|
|
|
| -import (
|
| "github.com/golang/glog"
|
| )
|
|
|
| -// flags
|
| +// Command line flags.
|
| var (
|
| port = flag.String("port", ":9000", "HTTP service address (e.g., ':9000')")
|
| staticDir = flag.String("static", "./app", "Directory with static content to serve")
|
| @@ -20,15 +18,11 @@ var (
|
| )
|
|
|
| func main() {
|
| - // parse the arguments
|
| flag.Parse()
|
| + defer glog.Flush()
|
|
|
| - // // Static file handling
|
| http.Handle("/", http.FileServer(http.Dir(*staticDir)))
|
|
|
| - // Wire up the resources
|
| -
|
| - // Start the server
|
| glog.Infoln("Serving on http://127.0.0.1" + *port)
|
| glog.Fatal(http.ListenAndServe(*port, nil))
|
| }
|
|
|