|
|
@ -59,12 +59,13 @@ func GetImports(absPath, importPath string, example bool) []string { |
|
|
|
fis := GetDirsInfo(absPath) |
|
|
|
fis := GetDirsInfo(absPath) |
|
|
|
absPath += "/" |
|
|
|
absPath += "/" |
|
|
|
|
|
|
|
|
|
|
|
dirs := make([]string, 0) |
|
|
|
// Load too much, skip for now.
|
|
|
|
for _, fi := range fis { |
|
|
|
// dirs := make([]string, 0)
|
|
|
|
if fi.IsDir() && !strings.Contains(fi.Name(), VENDOR) { |
|
|
|
// for _, fi := range fis {
|
|
|
|
dirs = append(dirs, absPath+fi.Name()) |
|
|
|
// if fi.IsDir() && !strings.Contains(fi.Name(), VENDOR) {
|
|
|
|
} |
|
|
|
// dirs = append(dirs, absPath+fi.Name())
|
|
|
|
} |
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
imports := make([]string, 0, len(pkg.Imports)) |
|
|
|
imports := make([]string, 0, len(pkg.Imports)) |
|
|
|
for _, p := range pkg.Imports { |
|
|
|
for _, p := range pkg.Imports { |
|
|
|