Hacker News new | ask | show | jobs
by keymone 3280 days ago
point is typedefs aren't reusable at anonymous function declarations. imo that sucks. that's all i wanted to say.
1 comments

You could always declare the method on the Printer type...

https://play.golang.org/p/4MG8kgGEGM

where's the anonymous function with reuse of typedef in there?