To answer the title question: no, there's no way to limit an imported
package to a subset of its exported identifiers. But, given the example
provided, it seems the suggested solution works exactly as you desire.
You can give a local identifier to an imported package (e.g.
https://play.golang.o
It works temporarily, but then I have to manually update each file that
imports + exports the methods, it won't "just work" with new versions of
the library that gets imported, right?
On Wed, Sep 23, 2020 at 11:59 AM Jason Phillips
wrote:
> Did you try your own suggestion? It seems to work fine