Re: [go-nuts] Issue implementing interface method that returns another interface

2023-03-02 Thread Rick Schubert
; return an interface. Or test using the concrete type, instead of using > mocks. > > On Tue, Feb 28, 2023 at 6:08 PM Rick Schubert > wrote: > >> I am having a question about how to implement interfaces correctly in Go >> when it comes to third-party packages that use

[go-nuts] Issue implementing interface method that returns another interface

2023-02-28 Thread Rick Schubert
I am having a question about how to implement interfaces correctly in Go when it comes to third-party packages that use chained methods. I have compiled an example project below for you so that you can understand the problem. package main import ( myAPI "github.com/hashicorp/vault/api" )