This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've faced with silly difficulty to wire a private type from external library to an interface. This is trivial with manual wiring but took me some time with wire. I think the guide should be more helpful so people give up using
wire.Bindif it involves unexported type, and switch back to non-idiomatic return interface. Although, I don't really understand the full complication, like if it will trigger some lint rules.Alternatively, it might be helpful if there's additional API like
wire.BindFieldOfto avoid returning interface.Attached here is the example.
repo: https://github.com/giovanism/google-wire-unexported-type
also note that the below version of wire gen output is from when the type was still public
*internal.PrivateAll reactions