A simple http server written in Go inspired by Python's python -m http.server
to serve a directory over http.
go get -u github.com/gangleri/httpdir/cmd/httpdir
httpdir [-p port {8080}] [path to serve]
-
The
--port
flag can be used to server on a prt other than the default of8080
-
Running without an argument will serve the currect directory. Otherwise the directory at the supplied path will be served
Sometimes I've found it useful to spin up an http sever, I had a previous version written only using Go's stdlib but this was extended to play with cobra overkill and under utilisation of cobra for this but it was a play thing 🤷 😁