Hacker News new | ask | show | jobs
by yahyaheee 2540 days ago
It would depend on how generics are implemented in Go, with the current proposed implementation that would be possible. Without generics today you could use an interface, wouldn't be as pretty but would get the job done.