Hi ascarter, This sounds like a great way to do it (even if I don't totally understand how it works, you gave me homework :D ), but, as I understand it, this would'nt work on slices ; i.e. []Player . Or I am mistaken ? Moreover, the regular rule is that the CustomField is not sent and the exception one is that it is received. In your resolution, it goes in the other side (which could matter in terms of performance).
Le mercredi 6 septembre 2017 19:39:39 UTC+2, ascarter a écrit : > > You might be able to use this technique: > > https://attilaolah.eu/2014/09/10/json-and-struct-composition-in-go/ -- 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.