I have to say I didn’t understand why they won’t support generics for interface functions. Seems very inconsistent. But I guess that’s life. Have to try to implement using interfaces and reflection.
I find you can pull the multi type parameter functionality out of the interface or structure and create a multi type parameter function which accepts the the generic interface or structure.
Actually your post addresses a real issue with generics in GoLang and I’d love to see some real work-a-rounds.