summaryrefslogtreecommitdiff
path: root/addMutex.go
diff options
context:
space:
mode:
Diffstat (limited to 'addMutex.go')
-rw-r--r--addMutex.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/addMutex.go b/addMutex.go
index 01cb908..78abb6b 100644
--- a/addMutex.go
+++ b/addMutex.go
@@ -23,6 +23,8 @@ func (pb *Files) addMutex(f *File) error {
w, _ := os.OpenFile(f.Pbfilename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
+ pbHeaderComment(w)
+
lines := strings.Split(string(data), "\n")
for _, line := range lines {
if strings.HasPrefix(line, "package ") {