Golang server library for Gemini protocol based on standart net/http
library.
import "github.com/nxshock/gemini"
gemini.HandleFunc("/", func(w gemini.ResponseWriter, r *gemini.Request) {
w.Write([]byte("hello"))
})
err := gemini.ListenAndServeTLS("", "localhost.crt", "localhost.key", nil)
if err != nil {
panic(err)
}