title: Sharing a global variable throughout packages
body: <p>So I have a SQL pointer (<code>*sql.DB</code>) that needs shared throughout packages.</p>
  
  <p>For example:</p>
  
  <p>"<code>./main.go</code>" has a global variable "<code>db</code>" that needs to be shared with a package in "<code>./another/package.go</code>".<br>
  How could one achieve sharing variables without passing function parameters?</p>