Thanks for the challenge! I found some unused code in the getItem function, and a way to make it a bit shorter by removing the lookup map. However, depending on the number of struct types the map may be cleaner for OP.
https://play.golang.org/p/ZH09nHsrRoR -- 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.