gemini.go (view raw)
1package main
2
3import (
4 "fmt"
5 "git.sr.ht/~adnano/gmi"
6)
7
8func gmiIndex(w *gmi.ResponseWriter, r *gmi.Request) {
9 fmt.Fprintf(w, "index")
10}
11
12func gmiPage(w *gmi.ResponseWriter, r *gmi.Request) {
13}
14
15func runGeminiServer() {
16 var server gmi.Server
17 server.HandleFunc("flounder.online", gmiIndex)
18 server.ListenAndServe()
19}