// String returns a minimal encoding of the Packet struct.
String returns a minimal encoding of the Packet struct.
// String returns a minimal encoding of the Packet struct .
func (p *Packet) String() string {
	s := make([]string, len(p.Headers))
	for i := range p.Headers {
		if p.Headers[i] == nil {
			break
		}
		s[i] = p.Headers[i].String()
	}
	return fmt.Sprintf("%s %s", p.Time, strings.Join(s, " "))
}
func ( p * Packet ) String ( ) string { s := make ( [ ] string , len ( p . Headers ) ) for i := range p . Headers { if p . Headers [ i ] == nil { break } s [ i ] = p . Headers [ i ] . String ( ) } return fmt . Sprintf ( " " , p . Time , strings . Join ( s , " " ) ) }
String returns a minimal encoding of the Packet struct.
String returns a minimal encoding of the Packet struct .