I'm trying to understand what https://golang.org/pkg/go/ast/#File means by "unresolved identifiers" and how to resolve the ast.ImportSpec from this.
I have an interface:
import "github.com/elgohr/counterfeiter/fixtures/aliased_package"
type SomethingWithForeignInterface interface {
the_aliased_package.InAliasedPackage
}
As you can see, the_aliased_package is different from the imported aliased_package. Nevertheless, it's inside this import (but the foldername of the package is different). In the ast.File representation of this interface, ast.File.Imports contains a Path.Value "github.com/elgohr/counterfeiter/fixtures/aliased_package" and Unresolved contains an ast.Ident.Name "the_aliased_package"
How can I resolve the unresolved ident to the right import?