你能在 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`
- 2 回答
- 0 关注
- 78 浏览
添加回答
举报
0/150
提交
取消