我努力寻找我的例子,但尽管一堆问题非常相似,但我无法理解我做错了什么。我对golang很陌生,我正在尝试实现生活游戏。这是我的部分代码//SpeciesstructtypeSpeciesstruct{xPosint32yPosint32isAliveboolwillChangeStateboolrectsdl.Rectneighbours[]Species}typeEcosystemstruct{community[]Species}func(ecos*Ecosystem)addSpecies(spSpecies){ecos.community=append(ecos.communit