diff options
| author | Jeff Carr <[email protected]> | 2025-01-09 04:03:30 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-09 04:03:30 -0600 |
| commit | d67c2eb3a283138b5c08318b232311ecd8971f97 (patch) | |
| tree | 790dc7dee69e4139a474b21ea5890720e0bcd923 /protoParse.go | |
| parent | 6f354d8d9f2d34505794f5f842de967297a78616 (diff) | |
cleanup output more
Diffstat (limited to 'protoParse.go')
| -rw-r--r-- | protoParse.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/protoParse.go b/protoParse.go index 49f382c..a27a4fb 100644 --- a/protoParse.go +++ b/protoParse.go @@ -44,8 +44,6 @@ func (pb *Files) findAutogenpb(f *File) error { newm := parts[1] if curmsg == nil { log.Info("Error: Found Sort for:", newm, "however, this struct can't be used") - // log.Info("found marshal", newm) - marshalKeys = append(marshalKeys, newm) } else { log.Info("Found Sort for:", newm, "in struct", curmsg.Name) } @@ -56,11 +54,9 @@ func (pb *Files) findAutogenpb(f *File) error { } if strings.Contains(line, "autogenpb:unique") { if parts[0] == "repeated" { - // log.Info("Found Unique for:", parts) newu := parts[1] newu = cases.Title(language.English, cases.NoLower).String(newu) - log.Info("found unique field", newu, "in struct", curmsg.Name) - // uniqueKeys = append(uniqueKeys, newu) + log.Info("Found unique field", newu, "in struct", curmsg.Name) } else { log.Info("Error:", line) log.Info("Error: can not append on non repeated fields") @@ -83,11 +79,11 @@ func (f *File) parseForMessage(line string) *MsgName { if strings.Contains(line, "`autogenpb:mutex`") { msg.DoMutex = true - log.Info("Found Mutex for:", msg.Name) + log.Info("Added Mutex=true:", msg.Name) } if strings.Contains(line, "`autogenpb:marshal`") { msg.DoMarshal = true - log.Info("Found Marshal for:", msg.Name) + log.Info("Added Marshal=true:", msg.Name) } return msg } |
