Login
From:
www.emoses.org
(Uncensored)
subscribe
Go Generics: Use Structs for Generic Arguments Lists - Evan Moses
https://www.emoses.org/posts/reusable-patterns-in-go/
links
backlinks
Tagged with:
go
I wanted to build reusable code for a pattern in Go, I had to fight the type system a bit but I won in the end We can pack argument lists into structs to make the pattern generic over different sets of arguments to functions
Roast topics
Find topics
Find it!