Fork of go-gemini
Go to file
2023-05-25 18:45:53 -04:00
certificate
examples Change import paths 2023-05-25 18:45:53 -04:00
tofu
.build.yml
client.go
doc.go doc: Fix Mux documentation 2022-02-16 12:01:55 -05:00
fs.go fs: Prevent invalid directory links 2022-05-07 13:54:56 -04:00
gemini.go
go.mod
go.sum
handler.go
io.go
LICENSE
LICENSE-GO
middleware.go
mux_test.go mux: Add more tests 2021-06-26 20:16:38 -04:00
mux.go mux: Tweak documentation 2021-06-26 20:26:30 -04:00
query.go
README.md Update readme 2023-05-25 18:27:52 -04:00
request_test.go
request.go
response_test.go
response.go
server.go
status.go
text.go Fix parsing of list item lines 2022-03-15 11:07:04 -04:00

go-gemini

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.16.0 of the Gemini specification.

Usage

import "git.tebibyte.media/sashakoshka/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

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.