gost

command module
v0.0.0-...-a57c790 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2018 License: MIT Imports: 8 Imported by: 0

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 (c) 2016 Vincent Wochnik.

License: MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL