package main import ( "log" "net/http" ) func main() { app := new(application) log.Print("Starting server on port 4000") err := http.ListenAndServe(":4000", app.Routes()) log.Fatal(err) }