Is possible to serve a directory, http.FileServer(http.Dir(".")), without 
listing the directory contents of that directory by navigating one folder 
above it in the browser?

http.Handle("/img/", http.FileServer(http.Dir("static")))

<img src="/img/image.jpg> is served, but the browser will index everything 
in /img/

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to