I have 2 method of 2 struct A and B. The content of 2 Method is the same.
func (t *A) TestGo() error {
...
return t.abc(); // call method of struct
}
Could I write a func able to input 2 type. Like this
fun TestGo(t .?.) error {
...
return t.abc();
}
It will easier to maintain in later. Thanks!