()
| 9 | ) |
| 10 | |
| 11 | func main() { |
| 12 | mux := http.NewServeMux() |
| 13 | |
| 14 | h := handler.New(starter.StaticFiles) |
| 15 | h.RegisterRoutes(mux) |
| 16 | |
| 17 | port := os.Getenv("PORT") |
| 18 | if port == "" { |
| 19 | port = "3000" |
| 20 | } |
| 21 | |
| 22 | http.ListenAndServe(":"+port, mux) |
| 23 | } |
nothing calls this directly
no test coverage detected