Skip to content
Simple, low maintenance gopher server
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
filetypes.go
gopher.go
gopher_test.go
gophertypes.go
http.go
template.go

README.md

gopher

A simple, low maintenance Gopher server. Serves a directory tree with associated metadata files as a gopher hole.

Usage

-d string
    The gopher root dir (default ".")
-n string
    The hostname (default your hostname)
-p int
    The port to listen to (default 70)
-w string
    HTTP server address

Metadata

gopher reads .head files in its directories to produce page headers. These contain gopher selectors. The selectors only have to be partially written, and the server will fill missing columns with dummy data. This can be used to create a header for a file listing, or to produce an arbitrary Gopher page.

HTTP

gopher will optionally serve HTTP, given an address in the form "host:port". This will mirror the gopher content and optionally use HTML templates:

  • .template: The template used for gopher menus
  • .mdtemplate: The template used for Markdown documents
You can’t perform that action at this time.