mirror of
https://github.com/beego/bee.git
synced 2024-12-22 20:20:49 +00:00
Update g_docs.go
This commit is contained in:
parent
4ebf7eab65
commit
d93e9a4271
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user