It would be easier to help if you gave us a more concrete picture of what you're trying to achieve; if there were a nice drop-in alternative to generics in all circumstances already in the language, we probably wouldn't be talking about adding them in the first place :P.
Quoting Tharaneedharan Vilwanathan (2018-12-10 22:00:24) > Hi All, > I have a quick question. > What is the best choice for writing generic code till Go officially > supports generics? Just looking for some guidance. > Regards > dharani > > -- > You received this message because you are subscribed to the Google > Groups "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [1]golang-nuts+unsubscr...@googlegroups.com. > For more options, visit [2]https://groups.google.com/d/optout. > > Verweise > > 1. mailto:golang-nuts+unsubscr...@googlegroups.com > 2. https://groups.google.com/d/optout -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.