Go to file
2023-07-03 17:49:39 -07:00
cmd/gen Update for 0.18.0 2023-07-03 17:47:46 -07:00
examples/http Remove websocket example because the websocket has been removed from lemmy 2023-07-03 17:49:39 -07:00
types Update for 0.18.0 2023-07-03 17:47:46 -07:00
.gitignore Update for 0.18.0 2023-07-03 17:47:46 -07:00
go.mod Update domain 2023-04-20 19:27:38 -07:00
go.sum Update domain 2023-04-20 19:27:38 -07:00
lemmy.go Update domain 2023-04-20 19:27:38 -07:00
LICENSE Add GPLv3 license 2022-12-10 09:18:40 -08:00
README.md Remove websocket example because the websocket has been removed from lemmy 2023-07-03 17:49:39 -07:00
routes.gen.go Update for 0.18.0 2023-07-03 17:47:46 -07:00

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.