title: Serving an angular dist folder with go
body: <p>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.</p>
  
  <pre><code>spa := http.StripPrefix("/", http.FileServer(http.Dir("path/to/dist")))
  // m is a gorilla mux router.
  m.PathPrefix("/").Handler(spa)
  </code></pre>
  
  <p>However when I navigate to the port I'm serving on I receive a 404 error.</p>