title: How to access global variables
body: <p>How do I access a variable that was declared/init in my main.go in a different .go package/file? Keeps telling me that the variable is undefined (I know that global variables are bad but this is just to be used as a timestamp)</p>
  
  <p>in main.go</p>
  
  <pre><code>var StartTime = time.Now()
  func main(){...}
  </code></pre>
  
  <p>trying to access StartTime in a different .go file
  but keep getting StartTime undefined</p>