Path goPathEntry = findGoPathEntry(path);
if(goPathEntry == null) {
return new HashSet<>();
}
GoPackagesVisitor goPackagesVisitor = new GoPackagesVisitor(goPathEntry, listFrom(path)) {
@Override
protected FileVisitResult handleFileVisitException(Path file, IOException exc) {
// TODO: some sort of logging
return FileVisitResult.CONTINUE;
}
};
return goPackagesVisitor.getModuleNames();
}