A simple Web Server to serve your static files on a URL
serve // serves the files in current directory on a default URL(localhost:4000)
or
serve ./foobar // serves the files in `foobar` directoryIf you do not want to open browser by default, you can use -s flag.
You can serve on a specific local IP as serve -a=127.0.0.1:8000
- Clone this repository
- Run
go build - Copy the
serveoutput file to$PATH(like/usr/local/binfor unix systems)