serve

command module
v0.0.0-...-7a71936 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 9 Imported by: 0

README

serve

Serve files from the current directory over HTTP.

Install

go install github.com/hmarr/serve

Use

$ serve -h
Usage: ./serve [opts] [directory]
  -cors-allow string
    	origins to permit via cors
  -open
    	open in web browser
  -port int
    	the port of http file server (default 8000)
  -public
    	listen on all interfaces
$ serve
🚀  Listening on http://127.0.0.1:8000/
2019/03/05 11:59:44 GET /README

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