Thanks. It does work. I suppose I had wrong assumptions on how the 'internal' package works. I thought it is usable only by its immediate parent package. It turns out it is usable by any other packages that share the same parent as the internal package.
Thanks again, everyone! :) Henry On Monday, December 19, 2016 at 1:31:03 PM UTC+7, Marian Kopriva wrote: > 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.