новичок в go.lang, и я немного искал, в чем разница между этими двумя (люди / народы)?
type Person struct {
Name string
Age int
}
type People []struct {
Person
}
func main() {
person := Person{Name: "a", Age: 1}
var people People
people = append(people, person)
// throws: cannot use person (type Person) as type struct { Person } in append
var peoples []Person
peoples = append(peoples, person)
}