我需要帮助才能使这项工作适用于任何类型。我有一个函数,我需要接受具有ID属性的其他类型。我尝试过使用接口(interface),但这对我的ID属性案例不起作用。这是代码:packagemainimport("fmt""strconv")typeMammalstruct{IDintNamestring}typeHumanstruct{IDintNamestringHairColorstring}funcCount(ms[]Mammal)*[]string{//Howcanigetthisfunctiontoacceptanytypenotjust[]MammalIDs:=make([]s