// utility to print list of messages
utility to print list of messages
// utility to print list of messages
func messagesToString(description string, messageSet []*Message) string {
	var sb strings.Builder
	sb.WriteString(description)
	sb.WriteString("\n")
	if len(messageSet) == 0 {
		sb.WriteString("\tNo data\n")
	}
	for _, mes := range messageSet {
		sb.WriteString("\t")
		sb.WriteString(mes.String())
		sb.WriteString("\n")
	}
	return sb.String()
}
func messagesToString ( description string , messageSet [ ] * Message ) string { var sb strings . Builder sb . WriteString ( description ) sb . WriteString ( " \n " ) if len ( messageSet ) == 0 { sb . WriteString ( " \t \n " ) } for _ , mes := range messageSet { sb . WriteString ( " \t " ) sb . WriteString ( mes . String ( ) ) sb . WriteString ( " \n " ) } return sb . String ( ) }
utility to print list of messages
utility to print list of messages