Could a interface be composed of one method which handles different parameters given the underling struct?

后端 未结 0 608
既然无缘
既然无缘 2020-12-24 00:05

I have an interface that exposes a New method and a couple of structs that have that method but require different parameters to invoke it.

I came up with the followin

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