diff --git a/cmd/gopath.go b/cmd/gopath.go index 124906e77..8b196275e 100644 --- a/cmd/gopath.go +++ b/cmd/gopath.go @@ -38,6 +38,7 @@ func getGopmPkgs(dirPath string, isTest bool) (pkgs map[string]*doc.Pkg, err err imports := doc.GetAllImports([]string{dirPath}, ".", false) pkgs = make(map[string]*doc.Pkg) for _, name := range imports { + println(name) if name == "C" { continue } diff --git a/doc/utils.go b/doc/utils.go index 7cc054e83..16c87593e 100644 --- a/doc/utils.go +++ b/doc/utils.go @@ -68,6 +68,7 @@ func GetImports(absPath, importPath string, example bool) []string { imports := make([]string, 0, len(pkg.Imports)) for _, p := range pkg.Imports { + println(p, IsGoRepoPath(p), importPath) if !IsGoRepoPath(p) && !strings.HasPrefix(p, importPath) { imports = append(imports, p) }