; 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
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"
)