/httpserver

simple golang httpserver

Primary LanguageGo

Simple HTTP Server

So simple, almost no reasons to commit.

Prerequisites

Go

Get and install

go get github.com/ghchinoy/httpserver
go install github.com/ghchinoy/httpserver

Run

Once installed, run via:

httpserver

Defaults to current directory for HTML, optional -web param for HTML dir location.

Defaults to 8085 for port, optional -port param for port.

Example (redundant, since these are the defaults)

httpserver -port 8085 -web .