https://github.com/fogleman/serve
Simple Go file server for command line development use, a la Python's SimpleHTTPServer.
https://github.com/fogleman/serve
Last synced: 7 months ago
JSON representation
Simple Go file server for command line development use, a la Python's SimpleHTTPServer.
- Host: GitHub
- URL: https://github.com/fogleman/serve
- Owner: fogleman
- Created: 2016-04-12T19:14:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-01-10T18:39:02.000Z (about 1 year ago)
- Last Synced: 2025-05-13T08:43:26.770Z (11 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 38
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serve
Simple Go file server for command line development use, a la Python's SimpleHTTPServer.
### Installation
go get -u github.com/fogleman/serve
### Run the Server
By default, serves the current working directory on port 8000. If `$GOPATH/bin` is on your `PATH`, you can run it anywhere.
$ serve
[http://localhost:8000/](http://localhost:8000/)
### Command-line Arguments
| Flag | Default | Description |
| --- | --- | --- |
| -port | `8000` | port to listen on |
| -dir | `"."` | directory to serve |