-1
我在走的很远对于新手,我试图建立这种一般方面的功能:数组数组中特定位置的类型?
mapOfResults = ThingDoer([
["One", int, -1, true],
["Flying", string, "", true],
["Banana", bool, false, true]
])
但我甚至无法计算其签名(签名是在去为它甚至适当的期限?所有参数的定义等)。
我说的是这个结构:
func ThingDoer(config ThisIsWhatICannotFigure) map[string]Results {
// the body of my function
}
如何定义的类型这样的参数?
对我的作品!显然,我必须等一下才能接受你的回答。谢谢! –