Update g_docs.go

This commit is contained in:
Sergey Lanzman 2016-09-27 18:18:03 +03:00 committed by Sergey Lanzman
parent 4ebf7eab65
commit d93e9a4271
1 changed files with 5 additions and 1 deletions

View File

@ -90,7 +90,11 @@ func init() {
func parsePackagesFromDir(path string) {
parsePackageFromDir(path)
list, _ := ioutil.ReadDir(path)
list, err := ioutil.ReadDir(path)
if err != nil {
ColorLog("[ERRO] Can't read directory %s : %s\n", path, err)
os.Exit(1)
}
for _, item := range list {
if item.IsDir() && item.Name() != "vendor" {
parsePackagesFromDir(path + "/" + item.Name())