An open API service indexing awesome lists of open source software.

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.

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 |