diff options
Diffstat (limited to 'printDebInfo.go')
| -rw-r--r-- | printDebInfo.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/printDebInfo.go b/printDebInfo.go index 6ed5b8d..8bf61cc 100644 --- a/printDebInfo.go +++ b/printDebInfo.go @@ -34,7 +34,7 @@ func printDebInfoStrings(pb proto.Message) error { // 4. Check if the nested message is valid and has been set. if !debInfoMsg.IsValid() { - fmt.Printf("--- Field '%s' in [%s] is not set. --- ", debInfoFieldDesc.Name(), descriptor.FullName()) + fmt.Printf("--- Field '%s' in [%s] is not set. --- \n", debInfoFieldDesc.Name(), descriptor.FullName()) return nil // Not an error, just nothing to print. } @@ -42,7 +42,7 @@ func printDebInfoStrings(pb proto.Message) error { debInfoDescriptor := debInfoMsg.Descriptor() fields := debInfoDescriptor.Fields() - fmt.Printf("--- Listing String Fields in '%s' --- ", debInfoFieldDesc.Name()) + fmt.Printf("--- Listing String Fields in '%s' --- \n", debInfoFieldDesc.Name()) foundStrings := false for i := 0; i < fields.Len(); i++ { fieldDesc := fields.Get(i) @@ -54,7 +54,7 @@ func printDebInfoStrings(pb proto.Message) error { fieldName := fieldDesc.Name() // Print the result. - fmt.Printf(" %s: \"%s\"\n", fieldName, value) + fmt.Printf("%s: \"%s\"\n", fieldName, value) foundStrings = true } } |
