Define an interface of nested types

后端 未结 0 898
孤城傲影
孤城傲影 2021-02-06 23:13

Is it possible to define an interface like [[1, 2, [3]], 4] in Go? I cannot because [3] is of type []int and my interface wants type int.<

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