So the following works:
type Individual [][]int
type Population []*Individual
What I'm trying to do is add a field to Population so I do the following
var p Population
p.Name = "human"
So I tried this:
type Individual [][]int
type Population struct {
[]*Individual
Name string
}
But it doesn't work for me. How do I do this?