Hey team! I was trying to make an interface for the Client struct because I want to mock it for testing proposes, but I get stuck because the client exports the RpcClient field.
If you don't want to make the breaking changes needed to make the interface, you can just add a GetRpcClient() method to the Client. (That's quite easy and fully backwards compatible, but not the most pretty or idiomatic solution)
Hey team! I was trying to make an interface for the Client struct because I want to mock it for testing proposes, but I get stuck because the client exports the RpcClient field.
If you don't want to make the breaking changes needed to make the interface, you can just add a GetRpcClient() method to the Client. (That's quite easy and fully backwards compatible, but not the most pretty or idiomatic solution)