Skip to content

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

License

Notifications You must be signed in to change notification settings

nym3r0s/go-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages