[go-nuts] My trouble about GO interface

2018-08-08 Thread Henry
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

[go-nuts] My trouble about GO interface

2018-08-08 Thread Ally Dale
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.