My project structure looks like this:
--/project
----main.go
----/models
------user.go
In main.go I want to user user.go:
user.go:
package models
type User struct {
Name string
}
main.go:
package main
import (...)
func main() {
user := &User{Name: "Igor"}
}
How do I import user.go from main.go?
/project is under GOPATH, so I tried:
import "project/models"
but that does nothing.