1 2 3 4 5 6 7 8 9 10
package main import "net/http" func (app *application) routes() *http.ServeMux { mux := http.NewServeMux() mux.HandleFunc("/", app.home) return mux }