Y
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
davidarkemp2
3280 days ago
You could always declare the method on the Printer type...
https://play.golang.org/p/4MG8kgGEGM
link
keymone
3280 days ago
where's the anonymous function with reuse of typedef in there?
link
https://play.golang.org/p/4MG8kgGEGM