Executable around the Go HTTP Server. Used to serve static files from a directory.


  1. Install Go.
  2. Clone the repo git clone https://github.com/kevingimbel/goserve.git
  3. Run go build goserve.go from within the new directory.

If you would like to run the program from everywhere, link it into you $PATH variable, e.g.:

  $ sudo ln -s $(pwd)/goserve /usr/local/bin


goserve can be used from the command line as follows:

  $ goserve [-port ""]

This will serve the current directory to localhost:8000 or the specified port.

Test it

To test the server run goserve from the project directory and open localhost:8000/example