Go bindings to the Lemmy API, automatically generated from Lemmy's source code using the generator in cmd/gen.
Examples can be found in the examples directory.
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.