From 5d27bb2f34a03687323a6ff019ebf23f3b481801 Mon Sep 17 00:00:00 2001 From: Derek Munneke Date: Sun, 1 Jun 2014 04:26:56 +0930 Subject: [PATCH] Update README.md adding some getting started docs --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1853260..080a1f8 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,19 @@ The most simple static http server in go to quickly serve files out of a static directory -##Build and install +(although `cd /home/somedir && python -m SimpleHTTPServer` is pretty simple to :wink: ) -You'll need your GOBIN to be set. -Just run: +##Build and Install - go install simpleserver.go +You'll need your `GOBIN` to be set (e.g. `export GOBIN=.`) + + +To Build: + + export GOPATH=`pwd`; go get github.com/codegangsta/cli + export GOBIN=.; go install simpleserver.go + +To Run: + + $GOBIN/simpleserver +