Open ingyamilmolinar opened 5 months ago
It should be:
mux.HandleFunc("/favicon.ico", view.ServeFavicon) mux.HandleFunc("/static/", view.ServeStaticFiles) ...
instead of:
mux.HandleFunc("GET /favicon.ico", view.ServeFavicon) mux.HandleFunc("GET /static/", view.ServeStaticFiles) ...
I'm using go 1.21. Feel free to close if this works in Go 1.22.
Hello! Yes so in Go 1.22+ you'll include the method in the string like: "GET /" or "POST /" ect. Thank you though!
It should be:
instead of:
I'm using go 1.21. Feel free to close if this works in Go 1.22.