FAQ

On Fri, Jul 26, 2013 at 10:45 AM, John-Alan Simmons wrote:
http.Handle("/public/", http.FileServer(http.Dir("../public")))
http.ListenAndServe(":8080", nil)
IIRC, use: http.Handle("/public/", http.FileServer(http.Dir("")))

-j

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 7 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJul 26, '13 at 8:45a
activeJul 26, '13 at 9:56a
posts7
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase