Categorygithub.com/toqueteos/fileserver
modulepackage
1.0.0
Repository: https://github.com/toqueteos/fileserver.git
Documentation: pkg.go.dev

# README

fileserver

An alternative to python -m http.server in Go.

If you are unfamiliar with Python fear not, this project spins up a lightweight HTTP server to serve all static files in a folder.

Requirements

  • Go 1.12+
  • upx (optional)

How to build

go build -ldflags="-s -w" -o fileserver main.go
# Optional: Compress binary to ~75% of its original size (about 2MiB)
upx fileserver