A simple command-line static file server written in the Go Programming Language.
An alternative to python -m SimpleHTTPServer
It's as simple as
$ go get -u github.com/GokulSrinivas/go-httpTo serve the current directory on localhost:8080, simply type
$ go-httpOptions :-
 -p   : Specify the port number
 -d   : Specify subdirectory
$ go-http -p=1234This serves the current directory to port 1234 of localhost
$ go-http -d=sampleThis serves the subdirectory sample to port 8080 of localhost
$ go-http -p=4141 -d=sampleThis serves the subdirectory sample to port 4141 of localhost
If you want to add features, improve them, or report issues, feel free to send a pull request!