package peer import "log" func logPacket(p []byte, notes string) { h := parseHeader(p) log.Printf(`Sending: Data: %v | From: %d | To: %d | %s `, h.StreamID == dataStreamID, h.SourceIP, h.DestIP, notes) }