大量优化

This commit is contained in:
flswld
2023-01-05 01:29:00 +08:00
parent f991480192
commit 27f16d9063
226 changed files with 2651 additions and 2484 deletions

View File

@@ -13,11 +13,14 @@ func TestClientProtoGen(t *testing.T) {
}
nameList := make([]string, 0)
for _, entry := range dir {
split := strings.Split(entry.Name(), ".")
if len(split) != 2 || split[1] != "proto" {
if entry.IsDir() {
continue
}
nameList = append(nameList, split[0])
split := strings.Split(entry.Name(), ".")
if len(split) < 2 || split[len(split)-1] != "proto" {
continue
}
nameList = append(nameList, split[len(split)-2])
}
fileData := "package client_proto\n"