What Dave suggested should work, in your example package1, package2, package3 and package4 should be able to import testhelpers with `import "project/internal/testhelpers"`
On Sunday, December 18, 2016 at 2:48:41 PM UTC+1, Henry wrote: > > Where do you put this internal package in relation to the rest of the > packages? Is it something like this: > > project/ > package1/ > package2/ > package3/package4/ > internal/testhelpers/ > > I thought internal package would only be visible to its immediate parent? > I want it to be usable across the packages. > > Thanks. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.