package main import ( "fmt" "net/http" "os" ) func NotFoundHandler(w http.ResponseWriter, r *http.Request) { home_url := os.Getenv("HOME_URL") w.WriteHeader(http.StatusNotFound) w.Header().Set("Server", "MeowMusicServer") w.Header().Set("Content-Type", "text/html; charset=utf-8") fmt.Fprint(w, "404 Music Lost!

404 Music Lost!

We couldn't find the content you were looking for.

404
") fmt.Fprintf(w, "", home_url) fmt.Printf("[Web Access] Return 404 Not Found\n") }