update go.mod

This commit is contained in:
2024-12-18 17:00:26 +08:00
parent 3acc278811
commit eb2f0f9c22
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -17,6 +17,10 @@ type NetCatch struct {
stopFn context.CancelFunc
}
func (n *NetCatch) Recall() func(gopacket.Packet) {
return n.fn
}
func (n *NetCatch) SetRecall(fn func(p gopacket.Packet)) {
n.fn = fn
}