Hi, I've run into an interesting scenario, where I am trying to build a wrapper around a third party package's interface. I am stuck in terms of what to do and wanted to get some advice. I am also kind of puzzled why golang allows doing this since putting a private interface as part of the public interface doesn't quite make sense since it is not possible to even use that method. Appreciate the your help in advance!
For example package original type Client interface { DoSomething1 () DoSomething2 (int) privateInterface } type privateInterface interface { Method1 (privateInterface2) } type privateInterface2 interface { GenericMethod } I want to extend the original interface with: package wrapper import "original type Client interface { original.Client OtherStuff() } If anyone is wondering, the code that I am looking at is https://github.com/coreos/etcd/blob/master/client/client.go -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.