Posts by Pedro Tavares • 1 point
1 post
-
-1
votes1
answer42
viewsQ: How to convert two separate field values of a JSON into a Go map?
I have a JSON that looks like this: { "estados":[ { "sigla": "SP", "nome": "São Paulo" }, { "sigla": "RJ", "nome": "Rio de Janeiro" } ] } How can I turn this JSON in a map in Go, where the keys to…