fix: create file protobuf content
This commit is contained in:
parent
d0a43019bc
commit
01e8e2905e
2
gobuf.go
2
gobuf.go
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user