コード例 #1
0
ファイル: util.go プロジェクト: ChugR/qpid-proton
// 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())
	}
}