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


-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


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.


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