package main import ( "log" "net/http" ) func setupRoutes() { http.HandleFunc("/", indexMux) http.HandleFunc("/recipe", recipeMux) http.HandleFunc("/recipe/edit", recipeEditMux) http.HandleFunc("/recipe/confirm-deletion", recipeConfirmDeletionMux) http.HandleFunc("/add_recipes", addRecipesMux) http.HandleFunc("/static/style.css", staticStyleMux) http.HandleFunc("/favicon.ico", faviconMux) } func runServer() { setupRoutes() address := config.Host + ":" + config.Port log.Println("Serving content at 'http://" + address + "'.") log.Fatal(http.ListenAndServe(address, nil)) }