summaryrefslogtreecommitdiff
path: root/marshal.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-11 13:50:38 -0600
committerJeff Carr <[email protected]>2024-12-11 13:50:38 -0600
commit96a063a15a8f3f31bc98fe94ce1320e39232f26d (patch)
treede06b46b2a38bca923213d0ef78139cce6b54bfd /marshal.go
parent5846d5e4affbb2c2a220453a3de3c335b43cd2d6 (diff)
duh. TRUNC filesv0.0.22v0.0.21
Diffstat (limited to 'marshal.go')
-rw-r--r--marshal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.go b/marshal.go
index 91ea414..7585a6d 100644
--- a/marshal.go
+++ b/marshal.go
@@ -17,7 +17,7 @@ func marshal(names map[string]string) {
os.Exit(0)
}
- w, _ := os.OpenFile(names["protobase"]+".marshal.pb.go", os.O_WRONLY|os.O_CREATE, 0600)
+ w, _ := os.OpenFile(names["protobase"]+".marshal.pb.go", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
fmt.Fprintln(w, "package "+names["package"])
headerComment(w)