commons_go/matcher/packet/packet.go

14 lines
165 B
Go
Raw Normal View History

2017-04-10 11:14:12 +00:00
package packet
type Packet struct {
Buffer []byte
Len int
}
func NewPacket(buf []byte, len int) *Packet {
return &Packet{
Buffer: buf,
Len: len,
}
}