Example #1
0
func main() {
	templates := populateTemplates()

	controllers.Register(templates)

	http.ListenAndServe(":8000", nil)
}
Example #2
0
func main() {
	port := ":8000"

	templates := populateTemplates()
	controllers.Register(templates)

	fmt.Printf("Serving on port " + port + "\n")
	http.ListenAndServe(port, nil)

}
Example #3
0
func main() {
	// Register all the handlers
	controllers.Register()

	http.ListenAndServe(":3000", nil)
}