Go to file
Caleb Vorderbruggen 2eacd54154 updated README
2022-04-18 18:24:22 -04:00
go.mod initial 2022-04-18 18:13:53 -04:00
go.sum initial 2022-04-18 18:13:53 -04:00
handler.go initial 2022-04-18 18:13:53 -04:00
LICENSE initial 2022-04-18 18:13:53 -04:00
README.md updated README 2022-04-18 18:24:22 -04:00

Handler

Provides simple HTTP file server; Its so simple to do with golang; looks like nobody bothers to provide a ready-to-download package to actually do it.

Installation

go install git.thirdage.dev/night/handler@latest

Examples

Calling without any arguments defaults to serving ./ at 0.0.0.0:8080

./handler

Changing default settings

  • a sets ip address
  • p sets port
  • d sets directory to serve
./handler -a 127.0.0.1 -p 3000 -d ./foo/bar