Our great sponsors
-
bob
SQL query builder and ORM/Factory generator for Go with support for PostgreSQL, MySQL and SQLite (by stephenafamo)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Mantis
Sphire Mantis is a broadly featured Go helper library with standalone packages (by sphireinc)
-
sage
Discontinued Trie data structure for storing and retrieving HTTP route values. Used for building Go HTTP router packages. (by nahojer)
I'm using generics heavily in Bob, a query builder and ORM generator
mostly this https://github.com/samber/lo
Generally when I feel like revisiting some CS staples and working out how to implement them idiomatically with generics. https://github.com/VictorLowther/btree is an example of this.
However, from my benchmarks, Bob is generally faster at query building than comparable packages see benchmarks. For the ORM portions, I'm still working on the benchmarks, but it seemed quite good in my initial tests.
Some basic math functions: https://github.com/sphireinc/Mantis/blob/master/helper/math.go
I used generics in a package for building HTTP routers using a trie data structure. The generic type represent the Handler func of the routes trie, but I wanted the consumer to be able to choose the signature for the handler. For example, they might want to define their own handler func type that returns an error, or perhaps take some arbitrary extra argument. Checkout https://github.com/nahojer/sage to learn more.