Let's see if I understand your question correctly. You have the interface in your main code, and the implementing struct in your test code. Do I get that right?
Another question is whether the main code and the test code live in the same package or different package. I normally put my test code in a separate package. So if my main code is in package abc, then my test code would be in abc_test. -- 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.