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.
|
2 days ago | |
---|---|---|
cmd/gen | 2 days ago | |
examples | 4 weeks ago | |
types | 2 days ago | |
.gitignore | 4 weeks ago | |
LICENSE | 2 months ago | |
README.md | 4 weeks ago | |
go.mod | 3 weeks ago | |
go.sum | 3 weeks ago | |
lemmy.go | 4 weeks ago | |
routes.gen.go | 2 days ago | |
websocket.go | 1 week ago |
README.md
Go-Lemmy
Go bindings to the Lemmy API, automatically generated directly from Lemmy's source code using the generator in cmd/gen.
Examples:
- HTTP: examples/http
- WebSocket: examples/websocket
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.