你能在 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 關注
- 123 瀏覽
添加回答
舉報
0/150
提交
取消