https://github.com/thiamsantos/goserve
Simple command-line static http-server
https://github.com/thiamsantos/goserve
command-line golang hosting http server static
Last synced: 10 months ago
JSON representation
Simple command-line static http-server
- Host: GitHub
- URL: https://github.com/thiamsantos/goserve
- Owner: thiamsantos
- License: apache-2.0
- Created: 2021-01-24T20:56:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-24T21:01:44.000Z (over 5 years ago)
- Last Synced: 2025-05-25T08:03:55.556Z (about 1 year ago)
- Topics: command-line, golang, hosting, http, server, static
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goserve
Simple command-line static http-server.
## Installation
You need `go` installed and `GOBIN` in your `PATH`. Once that is done, run the
command:
```shell
$ go get -u github.com/thiamsantos/goserve
```
## Usage
```
Usage
$ goserve [options]
Options
-path string
Path to serve (default ".")
-port int
Port to use (default 8080)
Examples
$ goserve
$ goserve -port 3000
$ goserve -path /tmp/static
$ goserve -port 8888 -path /tmp/static
```