Install with
go install github.com/snwfdhmp/simplehttp@latestWith no arguments, simplehttp starts serving files under ./ over port 8080.
$ simplehttp
INFO[0000] Serving ./ over 0.0.0.0:8080... Stop with ^CWith -d arg, specify the directory to be served.
$ simplehttp -d ./templates/
INFO[0000] Serving ./templates/ over 0.0.0.0:8080... Stop with ^C With -p arg, specify the port to serve on.
$ simplehttp -p 31415
INFO[0000] Serving ./ over 0.0.0.0:31415... Stop with ^C Feel free to open an issue for any feedback or suggestion.
I fix bugs quickly.
PR are accepted as soon as they follow Golang common standards. For more information: https://golang.org/doc/effective_go.html