Why not write a small go program to set up and manage your func test environment, then call go test and finally clean up?
Dave
Put that setup code in a separate package, and run it through a sync.Once.
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/SxEkZhWl3QA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ah, I see. Thanks for clearing it up!
The best approach would be to pass them as environment variables.
Depending on your needs you might prefer suite based testing wrappers like gocheck or goconvey.