1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-11-23 16:52:06 +01:00
Go implementation of the Gemini protocol
Go to file
2021-02-23 16:01:29 -05:00
certificate certificate.Store: Mention GetCertificate usage 2021-02-23 09:10:22 -05:00
examples examples/client: Stream response body 2021-02-23 15:56:44 -05:00
tofu tofu: Update documentation 2021-02-23 09:21:21 -05:00
.build.yml Add build manifest 2021-02-16 00:05:10 -05:00
client.go client: Move context handling to do 2021-02-23 16:01:29 -05:00
doc.go Update documentation 2021-02-23 14:29:37 -05:00
fs.go Rename ResponseWriter.MediaType to SetMediaType 2021-02-21 18:52:06 -05:00
gemini.go server: Revert to closing contexts on Shutdown 2021-02-22 21:13:44 -05:00
go.mod Require Go 1.16 2021-02-16 18:50:42 -05:00
go.sum client: Support IDNs 2021-02-09 15:59:47 -05:00
handler.go server: Don't recover from panics 2021-02-21 11:04:45 -05:00
LICENSE Rename repository to go-gemini 2020-10-24 15:15:32 -04:00
mux_test.go handler: Make ServeGemini accept a Context 2021-02-20 15:49:14 -05:00
mux.go ServeMux.HandleFunc: Take a HandlerFunc argument 2021-02-23 09:49:20 -05:00
query.go Update QueryEscape documentation 2020-12-18 00:26:47 -05:00
README.md Add build status badge to README.md 2021-02-16 00:07:01 -05:00
request_test.go request: Allow User in URLs 2021-02-16 00:55:56 -05:00
request.go server: Populate Request.Host field 2021-02-20 18:12:51 -05:00
response_test.go Make Status a type 2021-02-20 16:16:32 -05:00
response.go response: Remove TLS field 2021-02-23 15:29:27 -05:00
server.go server: Document use of context in ListenAndServe 2021-02-23 12:10:55 -05:00
status.go Make Status a type 2021-02-20 16:16:32 -05:00
text.go text: Update documentation 2021-02-23 09:18:34 -05:00
timeout.go timeout: Don't recover from panics 2021-02-23 15:30:44 -05:00
vendor.go Rename repository to go-gemini 2020-10-24 15:15:32 -04:00

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 make it easy to develop Gemini clients and servers.

Compatible with version v0.14.3 of the Gemini specification.

Usage

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

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.