Process parse provided dir itself

This commit is contained in:
Denis Kirillov 2023-04-13 16:51:15 +03:00
parent 0c6a45a4c5
commit 89063c454e

View file

@ -32,7 +32,7 @@ func main() {
log.Fatalf("failed to list subdirs: %v", err)
}
for _, dir := range directories {
for _, dir := range append(directories, *directory) {
fset := token.NewFileSet()
packages, err := parser.ParseDir(fset, dir, nil, 0)
if err != nil {