Skip to content

linkdd/go-http

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Http

Simple Command-Line static file server written in Go.

An alternative to python -m SimpleHTTPServer

Installation

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

Usage

To serve the current directory, simply type

$ go-http

Options :-

 -h   : Specify the host address (default: localhost)
 -p   : Specify the port number (default: 8080)
 -d   : Specify subdirectory (default: current directory)

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

$ 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

GPL V3

About

Simple Command-Line static file server written in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 81.5%
  • HTML 18.5%