serve

command module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 8 Imported by: 0

README

serve

A simple HTTP file server that serves the current directory on the port defined by the PORT environment variable.

Install

brew install 4d63/serve/serve

or

go get 4d63.com/serve

Usage

Serve has no options or configurations. Run it in a directory you want to serve.

serve
$ serve
2021/01/08 11:17:58 Listening on :8000
2021/01/08 11:18:04 GET /README.md 200 0.251259ms
$ PORT=3000 serve
2021/01/08 11:17:58 Listening on :3000
2021/01/08 11:18:04 GET /README.md 200 0.251259ms

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL