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