1
0
mirror of https://github.com/beego/bee.git synced 2024-11-22 10:10:53 +00:00

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

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())