Fork of go-gemini
de042e4724
Client.Timout isn't respected for the dial. Requests will hang on dial until OS-level timouts kick in unless there is a Request.Context with a deadline. We also fail to close the connection on errors. This change sets the client timeout as the dialer timeout so that it will be respected. It also ensures that we close the connection if we fail to make the request. |
||
---|---|---|
examples | ||
tofu | ||
.gitignore | ||
cert.go | ||
client.go | ||
doc.go | ||
fs.go | ||
gemini.go | ||
go.mod | ||
LICENSE | ||
mux.go | ||
query.go | ||
README.md | ||
request.go | ||
response.go | ||
server.go | ||
status.go | ||
text.go | ||
vendor.go |
go-gemini
Package gemini implements the Gemini protocol in Go.
It aims to provide an API similar to that of net/http to make it easy to develop Gemini clients and servers.
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.