A minimalist HTTP file server written in Go that serves files from a specified directory. It provides functionality similar to python -m http.server
.
- Serve current directory:
./serve
- Specify port and directory:
./serve -p 3000 /path/to/directory
- Serve on all interfaces:
./serve -h 0.0.0.0 -p 8000 /path/to/directory
To install Serve, run:
go install github.com/marifcelik/serve@latest