There were some difficulties in writing external tests for a main package, 
ie package main_test, but they were resolved a long time ago.

On Wednesday, 14 December 2016 04:18:22 UTC+11, Jan Mercl wrote:
>
> On Tue, Dec 13, 2016 at 6:13 PM adonovan via golang-nuts <
> [email protected] <javascript:>> wrote:
>
> > Packages named main are importable, just like any other. Occasionally 
> this is useful when you want to write tests for members of that package. Of 
> course, the main function is not exported.
>
> I recall running into this limitation years ago. Was it always possible? 
> Or do I have a false remembrance?
>
> -- 
>
> -j
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to