Simple Command-Line static file server written in Go.
An alternative to python -m SimpleHTTPServer
$ go get -u github.com/GokulSrinivas/go-http/src/go-http/To serve the current directory, simply type
$ go-httpOptions :-
-h : Specify the host address (default: localhost)
-p : Specify the port number (default: 8080)
-d : Specify subdirectory (default: current directory)
$ 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!!
