title: Import vars/consts from main in subpackage
body: <p>I have a Go project at <strong><code>$GOPATH/dalu/myproject</code></strong> with the following files : </p>
  
  <p><strong><code>main.go</code></strong>:</p>
  
  <pre><code>package main
  
  import "dalu/myproject/subpackage"
  var GV string = "World"
  
  func main() {
      subpackage.Hello()
  }
  </code></pre>
  
  <p><strong><code>subpackage/subpackage.go</code></strong>:</p>
  
  <pre><code>package subpackage
  
  import (
      "fmt"
      "dalu/myproject"
  )
  
  func Hello() {
      //? fmt.Println("Hello"+GV)
  }
  </code></pre>
  
  <p>Bonus (if I could):
  I tried something similar with more subpackages and when trying to import a subpackage in main that imports another subpackage which imports the first mentioned subpackage I get "import cycle not allowed"</p>