serve a directory over http in golang
credit goes to https://gist.github.com/enricofoltran/10b4a980cd07cb02836f70a4ab3e72d7 for making the majority of the code, i just wanted a -d option to specify a directory
$ serve -h
Usage of serve:
-d string
the directory to host (default ".")
-p string
port to serve on (default "8000")