Fork of go-gemini
Go to file
2021-03-24 13:30:46 -04:00
certificate
examples
tofu
.build.yml
client.go
doc.go
fs.go Revert "Require Go 1.16" 2021-03-23 22:05:12 -04:00
gemini.go
go.mod Revert "Require Go 1.16" 2021-03-23 22:05:12 -04:00
go.sum
handler.go
io.go
LICENSE Split LICENSE into two files 2021-03-24 13:08:32 -04:00
LICENSE-GO Split LICENSE into two files 2021-03-24 13:08:32 -04:00
middleware.go
mux_test.go
mux.go mux: Add copyright notice 2021-03-24 13:09:53 -04:00
query.go
README.md Update README.md 2021-03-24 13:30:46 -04:00
request_test.go
request.go
response_test.go Revert "Replace uses of ioutil with io" 2021-03-23 22:02:32 -04:00
response.go
server.go
status.go
text.go

go-gemini

godocs.io builds.sr.ht status

Package gemini implements the Gemini protocol in Go. It provides an API similar to that of net/http to facilitate the development of Gemini clients and servers.

Compatible with version v0.14.3 of the Gemini specification.

Usage

import "git.sr.ht/~adnano/go-gemini"

Note that some filesystem-related functionality is only available on Go 1.16 or later as it relies on the io/fs package.

Examples

There are a few examples provided in the examples directory. To run an example:

go run examples/server.go

Contributing

Send patches and questions to ~adnano/go-gemini-devel.

Subscribe to release announcements on ~adnano/go-gemini-announce.

License

go-gemini is licensed under the terms of the MIT license (see LICENSE). Portions of this library were adapted from Go and are governed by a BSD-style license (see LICENSE-GO). Those files are marked accordingly.