title: How to import structs from another package in Go
body: <p>I am trying to import the following struct into a separate package in Golang</p>
  
  <pre><code>package models
  type Category struct {
      Title string
      Description string
      Parent *Category
      ParentId int
  }
  </code></pre>
  
  <p>into <code>package controllers</code> as follows</p>
  
  <pre><code>import(
  "website.com/Owner/blog/app/models"
  )
  func (c Category) Update(){
     //do something here
  }
  </code></pre>
  
  <p>However, I get the error <code>unresolved type Category</code>
  How should I go about importing a struct into a separate package with Go?</p>