diff options
| author | Jeff Carr <[email protected]> | 2025-01-09 05:00:29 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-09 05:00:29 -0600 |
| commit | 0aa3457e7df607bf8e9e46184cffec7292e100d4 (patch) | |
| tree | 82d1388ebc3f367f0eca6c2fc702fc8036952461 /main.go | |
| parent | 62c93069c59cd03a3698b885a2ae2add2eef25bc (diff) | |
marshal is converted to using the protobuf
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 21 |
1 files changed, 4 insertions, 17 deletions
@@ -159,27 +159,14 @@ func main() { pb.addMutex(f) // if foo.pb.go still doesn't exist, protoc failed - // exit here - if !shell.Exists(sortmap["protoc"]) { - log.Info("protoc build error.", sortmap["protoc"], "failed to be created with protoc and proto-gen-go") + if !shell.Exists(pbfile) { + log.Info("protoc build error.", pbfile) badExit(errors.New("failed to be created with protoc and proto-gen-go")) } - if argv.NoSort { - // log.Info("not making sort.pb.go file (--no-sort == true)") - } else { - if len(uniqueKeys) != 0 { - } - makeSortfile() - } - - if argv.NoMarshal { - // log.Info("not making marshal.pb.go file (--no-marshal == true)") - } else { - // make the foo.marshal.pb.go file - marshal(sortmap) - } + pb.marshal(f) + // pb.makeSortfile(f) } func okExit(s string) { |
