static

command module
v0.0.0-...-cd483c0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 12 Imported by: 0

README

static

GoDoc Go Report Card

static is a self-hosted static file serving app which does nothing more than just serve up static files with a configured root path.

Installation

Source

With a valid Go environment:

$ go get git.mills.io/prologic/static

Usage

Run static:

$ static

Then visit: http://localhost:8000/

Configuration

By default static services up files from the current directory. This can be configured via the -root option.

License

MIT

Documentation

Overview

package Main is a simple static web server with some simple useful features such as - Directory listing - Default index files - Singla page mode (SPA) - Default CORS headers

Jump to

Keyboard shortcuts

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