你能在 Go 中用 a 做任何事情*func()吗?
var f func() = foo // works
var g *func() // works
g = foo // fails `cannot use foo (type func()) as type *func() in assignment` as expected
g = &foo // fails too `cannot take the address of foo`
LEATH
慕斯王
相关分类