forked from dstepanov-yadro/log-export
Process parse provided dir itself
This commit is contained in:
parent
0c6a45a4c5
commit
89063c454e
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func main() {
|
||||||
log.Fatalf("failed to list subdirs: %v", err)
|
log.Fatalf("failed to list subdirs: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, dir := range directories {
|
for _, dir := range append(directories, *directory) {
|
||||||
fset := token.NewFileSet()
|
fset := token.NewFileSet()
|
||||||
packages, err := parser.ParseDir(fset, dir, nil, 0)
|
packages, err := parser.ParseDir(fset, dir, nil, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue