> **Note** > > This program expects that your Gopher server treats **empty lines** as **information lines**. > > It also expects the server to **add the hostname** and the **port** number at the end of links. ### Compiling You need to have Go toolchain installed: ```shell # Debian sudo apt install golang # Fedora sudo dnf install golang ``` Then, just **clone the repo** and run **`go build .`** to compile an executable. ### Usage ```shell gemtext2gophermap input.gmi output_gophermap [max line length (default 70)] [preprocessor insertion map file] ``` ## Example **input.gmi** ````markdown Everything until the first in the map file will be put in place of the following insert-gopher tag. The > Everything after the first in the map file: ```` **map.txt** ```gophermap A line from map.txt ``` > If a line in map.txt isn't in format `i /PATH host 123` it **will not** automatically get converted into that format, > your **server is expected to do that** or you should write that explicitly in the map.txt file. > > This has been done to allow injecting PHP scripts. > (to avoid: `i in the map file will be put in /FAKE NULL 0 iplace of the following insert-gopher tag. /FAKE NULL 0 iThe