feat(external): Switch between packages & programs automatically
This commit is contained in:
parent
f5e3183de1
commit
875628a097
2 changed files with 21 additions and 9 deletions
2
external/main.go
vendored
2
external/main.go
vendored
|
|
@ -34,6 +34,7 @@ type pkg struct {
|
|||
Files []string `json:"files"`
|
||||
LocalDeps [][]string `json:"localDeps"`
|
||||
ForeignDeps []string `json:"foreignDeps"`
|
||||
IsCommand bool `json:"isCommand"`
|
||||
}
|
||||
|
||||
// findGoDirs returns a filepath.WalkFunc that identifies all
|
||||
|
|
@ -116,6 +117,7 @@ func analysePackage(root, source, importpath string, stdlib map[string]bool) (pk
|
|||
Files: files,
|
||||
LocalDeps: local,
|
||||
ForeignDeps: foreign,
|
||||
IsCommand: p.IsCommand(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue