At work recently; how would you use Go type constraints to ensure that users passed an argument as a pointer, and the argument implemented an interface on value receivers to prevent race conditions?

It's not quite Typescript levels of generic shenanigans but it's pretty cool! 🧵

Comments