mirror of
https://github.com/beego/bee.git
synced 2024-10-31 18:50:54 +00:00
commit
acef56f158
6
run.go
6
run.go
@ -128,7 +128,7 @@ func readAppDirectories(directory string, paths *[]string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
useDiectory := false
|
useDirectory := false
|
||||||
for _, fileInfo := range fileInfos {
|
for _, fileInfo := range fileInfos {
|
||||||
if strings.HasSuffix(fileInfo.Name(), "docs") {
|
if strings.HasSuffix(fileInfo.Name(), "docs") {
|
||||||
continue
|
continue
|
||||||
@ -138,13 +138,13 @@ func readAppDirectories(directory string, paths *[]string) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if useDiectory == true {
|
if useDirectory == true {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if path.Ext(fileInfo.Name()) == ".go" {
|
if path.Ext(fileInfo.Name()) == ".go" {
|
||||||
*paths = append(*paths, directory)
|
*paths = append(*paths, directory)
|
||||||
useDiectory = true
|
useDirectory = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user