// FormatMessage formats a message as a string, just the body by default or // the full message (with properties etc.) if "-full" flag is set. func FormatMessage(m amqp.Message) string { if *Full { return fmt.Sprintf("%#v", m) } else { return fmt.Sprintf("%#v", m.Body()) } }