gate兼容3.7

This commit is contained in:
UnKownOwO
2023-06-01 00:06:34 +08:00
parent 3efbad274d
commit 17dbf5aa8a
4 changed files with 31 additions and 8 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ func (c *ClientCmdProtoMap) GetClientProtoObjByName(protoObjName string) any {
}
}
`)
err = os.WriteFile("./client_proto_gen.go", []byte(fileDataBuffer.String()), 0644)
err = os.WriteFile("./client_proto_gen.go", fileDataBuffer.Bytes(), 0644)
if err != nil {
panic(err)
}