更方便的协议代理生成

This commit is contained in:
UnKownOwO committed 2023-03-26 12:45:38 +08:00
1 parent a5ad9cd65e
commit fed2c3ca4a
2 files changed
+7 -1

No files matched your search

@@ -39,6 +39,8 @@ func TestClientProtoGen(t *testing.T) {
fileData += "\n"
fileData += "func (c *ClientCmdProtoMap) LoadClientCmdIdAndCmdName() {\n"
for _, clientCmdLine := range clientCmdLineList {
// 清理空格以及换行符之类的
clientCmdLine = strings.TrimSpace(clientCmdLine)
if clientCmdLine == "" {
continue
}