title: go 1.16 embed - strip directory name
body: <p>i was previously using <a href="https://github.com/rakyll/statik" rel="nofollow noreferrer">statik</a> to embed files into a Go application.</p>
  <p>with Go 1.16 i can remove that deps</p>
  <p>for example:</p>
  <pre><code>//go:embed static
  var static embed.FS
  
  fs := http.FileServer(http.FS(static))
  http.Handle(&quot;/&quot;, fs)
  
  </code></pre>
  <p>this will serve the <code>./static/</code> directory from <code>http://.../static/</code></p>
  <p>Is there a way I can serve that directory from <code>/</code> root path, without <code>/static</code>?</p>