fix: create file protobuf content

This commit is contained in:
xuthus5 2024-03-22 00:06:16 +08:00
parent d0a43019bc
commit 01e8e2905e
Signed by: xuthus5
GPG Key ID: A23CF9620CBB55F9

View File

@ -53,7 +53,7 @@ func CreateFile(filename string) error {
}
// 写入基础的protobuf内容此步骤会创建文件
baseContent := []byte("syntax = \"proto3\";\npackage proto.v1;\noption go_package = \"projects/gen;genv1\";\n")
baseContent := []byte("syntax = \"proto3\";\n\npackage proto.v1;\n\noption go_package = \"projects/gen;genv1\";\n")
if err := os.WriteFile(filename, baseContent, os.ModePerm); err != nil {
return err
}