Executable around the Go HTTP Server. Used to serve static files from a directory.
- Install Go.
- Clone the repo
git clone https://github.com/kevingimbel/goserve.git
go build goserve.gofrom 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.
To test the server run
goserve from the project directory and open localhost:8000/example