Simple static file server. Current version is 0.1.1.
$ go install github.com/golang-id/gost
Running static file server on http://localhost:8080
with current
directory as document root:
$ gost
You can specify optional listen
address and/or path
(to be served
as the document root) flags.
$ gost -listen=:12345 -path="/home/gedex/my_static_web"
You can also specify an IP address if needed. In this example the server will bind to IP address 10.0.1.5 on port 9000.
$ gost -listen 10.0.1.5:9000
See the help:
$ gost --help
Usage of gost:
-listen=":8080": Address to bind to
-path="./": Path served as document root
Provides binaries for major platforms using goxc.
Good reference: https://github.com/jingweno/gh
See LICENSE file.