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
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.
--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:
-j
--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("")))http.ListenAndServe(":8080", nil)
-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.