gos
github.com/vwochnik/gost
go get github.com/vwochnik/gost
gos

github.com/vwochnik/gost

A static HTTP file server written in Golang.

by Vincent Wochnik

v0.0.0-20180414143050-a57c79093880 (see all)License:MIT
go get github.com/vwochnik/gost
Readme

Gost Static HTTP File Server

A static HTTP file server written in Golang.

Install

$ go get github.com/vwochnik/gost

Usage

Serve the current directory on port 8080:

$ gost
Static file server running at localhost:8080. Ctrl+C to quit.

Server your home directory on port 8888:

gost -port 8888 ~/
Static file server running at localhost:8888. Ctrl+C to quit.

See the help:

$ gost -h
Usage of gost: [-host HOST] [-port PORT] [DIRECTORY]

Serves the directory specified by the first argument which defaults to the current working directory if not specified.

  -cors
        Elable cross-origin resource sharing
  -host string
        Host to listen (default "localhost")
  -log string
        Optional log file
  -no-cache
        Disable caching
  -port int
        Port to listen (default 8080)
  -quiet
        Quiet mode

Copyright

Copyright (c) 2016 Vincent Wochnik.

License: MIT

GitHub Stars

11

LAST COMMIT

4yrs ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
v0.0.0-20180414143050-a57c79093880
2yrs ago
No alternatives found
No tutorials found
Add a tutorial