Skip to content

golang-id/gost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gost

Simple static file server. Current version is 0.1.1.

Install

$ go install github.com/golang-id/gost

Usage

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

Roadmap

Provides binaries for major platforms using goxc.

Good reference: https://github.com/jingweno/gh

Credits

License

See LICENSE file.