Skip to content

Instantly share code, notes, and snippets.

@buwilliams
Created July 9, 2018 14:22
Show Gist options
  • Save buwilliams/f76a80fefb6654a58dd02b4af3b1aad7 to your computer and use it in GitHub Desktop.
Save buwilliams/f76a80fefb6654a58dd02b4af3b1aad7 to your computer and use it in GitHub Desktop.
Map of object with unknown keys
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