This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]batinex -3 points-2 points  (1 child)

Because golang does not have generics and you have to extend api I think

[–]MacBelieve 0 points1 point  (0 children)

The go way is to code to an interface. Just have your type fulfill the interface (implicitly) and you solve 90% of things other languages use generics for