I'm simply trying to serve an angular application's dist folder using go. I tried an approach which worked well for me with react. e.g.
spa := http.StripPrefix("/", http.FileServer(http.Dir("path/to/dist")))
// m is a gorilla mux router.
m.PathPrefix("/").Handler(spa)
However when I navigate to the port I'm serving on I receive a 404 error.