2023-10-05 13:44:29 -07:00
2023-10-06 07:12:54 -07:00
2023-07-03 17:47:46 -07:00
2023-10-04 21:13:20 -07:00
2022-12-10 09:18:40 -08:00
2023-10-09 19:51:41 +00:00
2023-12-15 08:53:22 -08:00
2023-12-15 08:53:22 -08:00

Go-Lemmy

Go Reference

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

Examples

Examples can be found in the examples directory.

How to generate

First, clone the lemmy-js-client repo at whatever version you need:

git clone https://github.com/LemmyNet/lemmy-js-client -b 0.18.3

Inside it, build the JSON docs file:

npm run docs -- --json docs.json

Next, build the generator:

go build ./cmd/gen

Remove all the existing generated code:

rm **/*.gen.go

Execute the generator:

./gen -json-file <path_to_docs.json> -out-dir .

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

Description
No description provided
Readme 324 KiB
Languages
Go 100%