Skip Navigation

Go bindings for the Lemmy API

I've written Go bindings for Lemmy's HTTP API. If anyone wants to use them, the import path is go.arsenm.dev/go-lemmy. The repo is at https://gitea.arsenm.dev/Arsen6331/go-lemmy with a mirror on GitHub: https://github.com/Arsen6331/go-lemmy.

6
6 comments
  • Hey, thank you for sharing.

    May I ask - How are you planning to use them?

    • I want to try making a bot and maybe a client of some sort

      • Cool. I often wonder about pulling Lemmy data/components into Hugo (a static website, coded in Go).

        For example:

        1. Showing Lemmy ‘cards’ in the main Hugo feed (which display meta info about a Lemmy post (such as: number of comments, topic title, and post summary)).

        2. Or even... displaying a Lemmy post’s entire comment section (creating a nested comment-section for each Hugo post).

        It seems like you’ve experimented quite a bit.

        Do you feel like either of those is possible?

6 comments