You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Arsen Musayelyan 23163a1806
Update for 0.17.0
2 days ago
cmd/gen Update for 0.17.0 2 days ago
examples Move examples to examples directory 4 weeks ago
types Update for 0.17.0 2 days ago
.gitignore Use autogenerated bindings for Lemmy 0.16.7 4 weeks ago
LICENSE Add GPLv3 license 2 months ago
README.md Move examples to examples directory 4 weeks ago
go.mod Add WebSocket reconnects 3 weeks ago
go.sum Add WebSocket reconnects 3 weeks ago
lemmy.go Regenerate code 4 weeks ago
routes.gen.go Update for 0.17.0 2 days ago
websocket.go Reconnect on any read error 1 week ago

README.md

Go-Lemmy

Go Reference

Go bindings to the Lemmy API, automatically generated directly from Lemmy's source code using the generator in cmd/gen.

Examples:

How to generate

First, build the generator:

go build ./cmd/gen

Clone Lemmy's source code at whatever version you need:

git clone https://github.com/LemmyNet/lemmy -b 0.16.7

Remove all the existing generated code:

rm **/*.gen.go

Execute the generator:

./gen -out-dir .

And that's it! Your generated code should be ready for use.