FAQ
Which directory are you running the binary from ? If you are using Go
run, the current working directory may be surprising.

On Fri, Jul 26, 2013 at 7:22 PM, John-Alan Simmons
wrote:
That doesn't seem to work,
Although I can't see why that would work, that just seems like it would
server everything in the folder that contains app.go aka App/
Appreciate the help though

On Friday, July 26, 2013 4:49:39 AM UTC-4, Jan Mercl wrote:

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.
--
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 | 4 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