title: Remove trailing slash from urls - Go static server
body: <p>I've set up a simple Go static file server with <code>http.FileServer</code>. If I have a directory structure like <code>public &gt; about &gt; index.html</code>, the server will correctly resolve <code>/about</code> to <code>about &gt; index.html</code>, but it adds a trailing slash so the url becomes <code>/about/</code>.</p>
  <p>Is there a simple way to remove these trailing slashes when using <code>http.FileServer</code>? Ultimately, it works either way - it's mostly just a personal preference to not have the trailing slashes if possible.</p>