Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rexlx/serve

serve a directory over http in golang.
https://github.com/rexlx/serve

directory directory-server go golang http-server multithreading server

Last synced: 23 days ago
JSON representation

serve a directory over http in golang.

Awesome Lists containing this project

README

        

# serve
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

```bash
$ serve -h
Usage of serve:
-d string
the directory to host (default ".")
-p string
port to serve on (default "8000")
```