package matcher type Packet struct { Buffer []byte Len int } func NewPacket(buf []byte, len int) *Packet { return &Packet{ Buffer: buf, Len: len, } }