go-serve

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

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

Go to latest
Published: Jul 5, 2016 License: MIT Imports: 9 Imported by: 0

README

go-serve

Command-Line Static File Server

Go Report Card Travis

Usage

How to use it? Just run (Default: serves current working directory on localhost:8000)
$ go-serve
Dont like the port? Then change it
$ go-serve -p 3000
Want to serve only a specific sub directory?
$ go-serve -d assets
Want to serve files through a different public path? (say localhost:8000/files/)?
$ go-serve --path /files/
Other options
$ go-serve --disable-dir // To disable directory listing
$ go-serve --read 10s    // Maximum request read time
$ go-serve --write 10s   // Maximum response write time 

Installation

$ go get -u github.com/Revanth47/go-serve

Contribute

Feel free to send Pull Requests to add/improve upon features or to fix bugs.

LICENSE

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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