You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
195 B
Go
15 lines
195 B
Go
1 year ago
|
package packet
|
||
|
|
||
|
// Entry 入口原始数据
|
||
|
type Entry struct {
|
||
|
Header any
|
||
|
Raw []byte
|
||
|
}
|
||
|
|
||
|
func NewEntry(header any, raw []byte) *Entry {
|
||
|
return &Entry{
|
||
|
Header: header,
|
||
|
Raw: raw,
|
||
|
}
|
||
|
}
|