title: golang reference struct in same package in another file
body: <p>How to reference <code>MyStruct</code> in another file in the same <code>package</code> or folder?</p>
  
  <p>Currently I get <code>undefined: MyStruct</code> when <code>go build lib/file_2.go</code>. I can run <code>go install</code> with no error, should I just ignore the build error?</p>
  
  <p>These are my files:</p>
  
  <p><code>lib/file_1.go</code></p>
  
  <pre><code>...
  package lib
  ...
  type MyStruct struct{
  }
  ....
  </code></pre>
  
  <p><code>lib/file_2.go</code></p>
  
  <pre><code>...
  package lib
  ...
  {
  m MyStruct
  }
  ....
  </code></pre>
  
  <p>Thanks</p>