Go: An issue with casting

后端 未结 0 1301
攒了一身酷
攒了一身酷 2020-12-29 05:13

I have the following situation.

type A func(x int) int
type B func(x int) A

var testFunc = func() B {
    var ret interface{} = func(x int) A {
        retur         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题