Open
Description
Continuation of #1967
Right now, if your project has more than one file and type, plugin will produce errors. That's because currently gotype is only checking selected file without getting types from others, so it doesn't know anything about them. Solution is quite simple - just check the folder and not the file.
In case of /src/github.com/username/goproject/main.go
should become /src/github.com/username/goproject