更方便的协议代理生成

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

View File

@@ -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
}