As far as I know, there are three ways you can deal with this.
First, you can introduce a dummy private method in your interface, so as to
differentiate it from other interfaces. The implementing struct will need to
implement this dummy method. I don't like this approach for one bit, because it
Hi everyone,
I have some confusion about GO's interface:
1. Some different interface but with the same signature
I have put an example here:
https://github.com/vipally/glab/blob/master/lab12/walk_test.go
The confusion is, there are two different interface filepath.Walker and
pet.Walker.
filepath.