diff options
| author | Jeff Carr <[email protected]> | 2024-11-29 12:00:19 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-29 12:00:19 -0600 |
| commit | 69093ef5de0eb6a5f78ff55e3e28c416224e8232 (patch) | |
| tree | 16fd9906fbe58f65ac75380920e22f04a69b86a0 /marshal.go | |
| parent | dc640a6ccb70fa15a7d0cf3132aa0d484ea3b0f4 (diff) | |
standard header
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'marshal.go')
| -rw-r--r-- | marshal.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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\"") |
