Re:Constraints in Go
by peterldowns on Sunday November 17, 2024 @12:01PM
(#42165270)
My most common use of generics is when testing — check out my library for typesafe test comparisons. I find it really useful because I like having readable helpers for asserting in tests, but I also want compiler errors if I refactor things.
https://github.com/peterldowns/testy