func main() { templates := populateTemplates() controllers.Register(templates) http.ListenAndServe(":8000", nil) }
func main() { port := ":8000" templates := populateTemplates() controllers.Register(templates) fmt.Printf("Serving on port " + port + "\n") http.ListenAndServe(port, nil) }
func main() { // Register all the handlers controllers.Register() http.ListenAndServe(":3000", nil) }