go-http

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

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

Go to latest
Published: Oct 16, 2015 License: MIT Imports: 11 Imported by: 0

README

license Go Report Card

Go-Http

A simple command-line static file server written in the Go Programming Language.

An alternative to python -m SimpleHTTPServer

Installation

It's as simple as

$ go get -u github.com/GokulSrinivas/go-http

Usage

To serve the current directory on localhost:8080, simply type

$ go-http

Options :-

 -p   : Specify the port number
 -d   : Specify subdirectory

Specifying Port Number

$ go-http -p=1234

This serves the current directory to port 1234 of localhost

Specifying subdirectory

$ go-http -d=sample

This serves the subdirectory sample to port 8080 of localhost

Example Usage

$ go-http -p=4141 -d=sample

This serves the subdirectory sample to port 4141 of localhost

Contribute

If you want to add features, improve them, or report issues, feel free to send a pull request!

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