在这个程序中,我保存了对在slice中返回特定实现的函数的引用。在SpeakAll中,我调用每个函数以获取其对应的对象并在其上调用Speak。问题:无法遍历数组并获取输出GoPlaygroundpackagemainimport"fmt"typeIAnimalinterface{Speak()string}typeCatstruct{}func(cCat)Speak()string{return"meow!"}typeDogstruct{}func(dDog)Speak()string{return"woof!"}typeZoostruct{Animals[]func()IAnimal