...
type pokemon struct {
Id int64 `json:"id"`
Name string `json:"name"`
}
func GetHeroes() { // 先頭大文字がpublic
pokemons := [3]Pokemon{}
pokemons[0] = Pokemon{Id: 1, Name: "フシギダネ"}
pokemons[1] = Pokemon{Id: 2, Name: "ゼニガメ"}
pokemons[2] = Pokemon{Id: 3, Name: "ヒトカゲ"}
return pokemons, nil