GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tsivinsky/plain: file based router in Go

BranchesTags
Open more actions menu

Latest commit

 

History

42 Commits
42 Commits

Folders and files

NameName
Last commit message
Last commit date
cmd/plain
cmd/plain
 
 
example
example
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
plain.go
plain.go
 
 
readme.md
readme.md
 
 
router.go
router.go
 
 
server.go
server.go
 
 

Repository files navigation

plain

File-based router written in Go

Install

go install github.com/tsivinsky/plain/cmd/plain@latest

Usage

plain -p 5000

Pages

Put html files inside pages directory and they will be available at corresponding routes.

Static files

Create public directory and put static file there

Flags

Change port

plain -p 8080

Default: 5000

Change host

plain -H 192.168.0.103

Default: localhost

Start watcher

plain -w

This will tell plain to watch changes in pages directory. If you create or delete file, plain will update routes accordingly.

About

file based router in Go

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.