title: How can I do test setup using the testing package in Go
body: <p>How can I do overall test setup processing which sets the stage for all the tests when using the <a href="http://golang.org/pkg/testing/" rel="noreferrer">testing package</a>?</p>
  
  <p>As an example in Nunit there is a <code>[SetUp]</code> attribute.</p>
  
  <pre><code>[TestFixture]
  public class SuccessTests
  {
    [SetUp] public void Init()
    { /* Load test data */ }
  }
  </code></pre>