Carl Johnson
unread,Apr 18, 2013, 1:08:18 AM4/18/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
Go back to the very beginning. Your Dict type is a map[string] string. map[string] string can't hold a key-value pair that's string-Dict. It can only hold string-string pairs. So, from the start, you're not going to have any kind of nested dictionary at all until you fix that. There are a couple of ways. You could do type Dict map[string] Dict. But then you only have nested dictionaries and no unnested ones. Or you could do map[string] interface{}, which is closer to what you have in Python or Ruby.