A golang command line utility file server.
You must have the go tool installed to compile serve.
go build serve.go
mv ./serve /usr/local/binUsage is very simple, open a terminal, cd into the directory you would like to serve, and run serve.
# serve current directory at :8080
$ serveYou can also optionally add a port number. Note: you must be root to use port 80.
# optionally with port number
$ sudo serve 80There are also other options, -p for port number, -d for directory, and -s for an address sub-dir.
# serve ~/go at :8080/h/
$ serve -p 8080 -d ~/go -s /h/If you've never seen an MIT license, check out the LICENSE.
- Connor Taffe (@cptaffe)