Discover Packages
git.mills.io/prologic/static
command
module
Version:
v0.0.0-...-cd483c0
Opens a new window with list of versions in this module.
Published: Jan 15, 2023
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
static
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
Expand ▾
Collapse ▴
Documentation
¶
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.