In same package, I have a test file (that imports "testing") with also an
init() function, because I want to initialize some global variables used by
the test functions.
The problem is that init() in test file runs before init() in package.
Is there a means to make the init() in test file run after init() of the
Or is it desirable that Go runs init() in test file AFTER all the other
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@example.com.
For more options, visit https://groups.google.com/d/optout.