Created
July 9, 2018 14:22
-
-
Save buwilliams/f76a80fefb6654a58dd02b4af3b1aad7 to your computer and use it in GitHub Desktop.
Map of object with unknown keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mapkeys | |
import ( | |
"encoding/json" | |
) | |
type Json struct { | |
People map[string]Person `json:"people"` | |
} | |
type Person struct { | |
id int | |
name string | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment