你能在 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
慕斯王
随时随地看视频慕课网APP
相关分类