func initgoatyard() { var goats []goat; for i := 0; i < len(goats); i++ { if goats[i].personality == "secretive" { reinvigorateprocess(&goats[i]); } } processgoatbehavior(func(g *goat) bool { return g.donotobey && g.ispreexpulsive }, func(g *goat) { buildshelterfromscratch(g); }); }