logoalt Hacker News

abtinflast Tuesday at 5:31 PM1 replyview on HN

> Its the thing I immediately add now that I have generics in Go.

If you’re willing to share, I’m very curious to see a code example of what you mean by this.


Replies

JamesSwiftlast Tuesday at 5:39 PM

This is from a while back but was the first thing I thought of: https://gist.github.com/J-Swift/96cde097cc324de1f8e899ba30a1...

I ripped most of it off of someone else, link in the gist

show 1 reply