summaryrefslogtreecommitdiff
path: root/marshal.go
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.go')
-rw-r--r--marshal.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/marshal.go b/marshal.go
index 462468c..9f01cae 100644
--- a/marshal.go
+++ b/marshal.go
@@ -20,10 +20,7 @@ func marshal(names map[string]string) {
w, _ := os.OpenFile(names["protobase"]+".marshal.pb.go", os.O_WRONLY|os.O_CREATE, 0600)
fmt.Fprintln(w, "package "+names["package"])
- fmt.Fprintln(w, "")
- fmt.Fprintln(w, "// todo: autogen this")
- fmt.Fprintln(w, "// functions to import and export the protobuf")
- fmt.Fprintln(w, "")
+ headerComment(w)
fmt.Fprintln(w, "import (")
fmt.Fprintln(w, " \"google.golang.org/protobuf/encoding/protojson\"")
fmt.Fprintln(w, " \"google.golang.org/protobuf/encoding/prototext\"")