/go-http-server

A simple http server written in Go

Primary LanguageGo

go-http-server

A simple multithreaded http server written in Go.

Usage

The server can be started using the following command:

go run server.go

Alternatively,

go build server.go
./server

Command line flags

This application currently supports the following flags:

Flag Description Default Value Example
port Port on which the server listens 8000 go run server.go -port=8080 or ./server --port 8001
dir Directory to serve . go run server.go -dir=/path/to/dir or `./server --dir /path/to/dir

Suggestions?

Please open an issue or code it up and send me a PR.