title: How to use struct that is imported from another package
body: <p>Well, I have my struct <strong>Player</strong> in package <strong>Player</strong></p>
  
  <pre><code>package Player
  
  type Player struct {
      name         string
      speciality   string
  }
  </code></pre>
  
  <p>And I have my <strong>main function</strong> in package <strong>main</strong></p>
  
  <pre><code>package main
  
  import "pack/Player"   
  
  func main() {   
     var player Player.Player
     fmt.Print(player.name)
  }
  </code></pre>
  
  <p>But after I compile it I get </p>
  
  <blockquote>
    <p>player.name undefined (cannot refer to unexported field or method
    name)</p>
  </blockquote>
  
  <p>What I am doing wrong?</p>