README ¶ Serve A Simple HTTP Server Built on Top of Go Run Via Download Download from here Operating System Name Format MacOS serve_{version}_darwin_{arch} Linux serve_{version}_linux_{arch} Windows serve_{version}_windows_{arch}.exe For MacOS and Linux, make the file executable # chmod +x serve_{version}_{os}_{arch} $ chmod +x serve_0.2.0_linux_amd64 $ ./serve_0.2.0_linux_amd64 -v serve v0.2.0 Via Go Install $ go install github.com/ClavinJune/serve@latest go: downloading github.com/ClavinJune/serve v0.2.0 $ serve -v serve v0.2.0 Via Go Run $ go run github.com/ClavinJune/serve@latest -v serve v0.2.0 Via Docker $ docker run -it --rm ghcr.io/clavinjune/serve:latest -v Unable to find image 'ghcr.io/clavinjune/serve:latest' locally latest: Pulling from clavinjune/serve e8614d09b7be: Already exists c6f4d1a13b69: Already exists 93568a6738e5: Pull complete 48e5c4bdc3ac: Pull complete bf85f5ad0df5: Pull complete Digest: sha256:b1decd2cda017f209cd19f2315ef70bb78d58860241255cabd77705ade54654b Status: Downloaded newer image for ghcr.io/clavinjune/serve:latest serve v0.2.0 Usage $ serve -h Usage of serve: -p int port on which the server will listen (default 1313) -q run server quietly -r string root document which the server will serve (default ".") -s serve single page application -v print current version Example $ docker run -it --rm \ > -v /tmp/foo:/app/src \ > -p 1313:1313 \ > ghcr.io/clavinjune/serve:latest 2021/11/04 06:32:19 listen and server /app/src/ at http://0.0.0.0:1313 2021/11/04 06:32:23 / 46.107µs 2021/11/04 06:32:23 /favicon.ico 78.868µs 2021/11/04 06:32:40 /index.html 6.642µs 2021/11/04 06:32:40 / 31.058µs 2021/11/04 06:32:44 /foo/ 60.574µs Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Directories ¶ Show internal Expand all Path Synopsis internal Click to show internal directories. Click to hide internal directories.