Hacker News new | ask | show | jobs
by masklinn 4698 days ago
> you'd have to implement it on a per-type basis

Alternatively you can implement everything on interface{} and force the user of the higher-order function to use type assertions everywhere.