mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 14:22:26 +08:00
更方便的协议代理生成
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user