One thing that I really like about python is this one command line to serve 
static files:

     python -m SimpleHTTPServer


This is very convenient. 


Now I just want to use Go to do the same thing, I have to copy the snippet 
from 

https://github.com/golang/go/wiki/HttpStaticFiles and go run it.


Since Go is battery included and http is part of its core  library, why not 

just build it into the Go toolchain, So every time I want to serve static 
files, 

I can fire up go like this:


     go tool http  /usr/share/doc


     go tool http  --addr=:8888 /usr/share/doc




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