func (pkt *SubscribePacket) String() string {
	if len(pkt.Topics) == 0 {
		return fmt.Sprintf("SUBSCRIBE mid:%d <no topics>", pkt.ID)
	}
	str := fmt.Sprintf("SUBSCRIBE mid:%d", pkt.ID)
	for _, topic := range pkt.Topics {
		str += fmt.Sprintf("\n  %q qos:%d", topic.Name, topic.QoS)
	}
	return str
}
// String stringifies the packet in a human readable format.
String stringifies the packet in a human readable format.
// String stringifies the packet in a human readable format .
func (pkt *SubscribePacket) String() string {
	if len(pkt.Topics) == 0 {
		return fmt.Sprintf("SUBSCRIBE mid:%d <no topics>", pkt.ID)
	}
	str := fmt.Sprintf("SUBSCRIBE mid:%d", pkt.ID)
	for _, topic := range pkt.Topics {
		str += fmt.Sprintf("\n  %q qos:%d", topic.Name, topic.QoS)
	}
	return str
}
func ( pkt * SubscribePacket ) String ( ) string { if len ( pkt . Topics ) == 0 { return fmt . Sprintf ( " " , pkt . ID ) } str := fmt . Sprintf ( " " , pkt . ID ) for _ , topic := range pkt . Topics { str += fmt . Sprintf ( " \n " , topic . Name , topic . QoS ) } return str }
String stringifies the packet in a human readable format.
String stringifies the packet in a human readable format .