chore: format

This commit is contained in:
Toby
2024-05-07 22:50:58 -07:00
parent abd7725fed
commit 70fee14103
2 changed files with 6 additions and 7 deletions

View File

@@ -20,17 +20,16 @@ type pcapPacketIO struct {
ioCancel context.CancelFunc
config PcapPacketIOConfig
dialer *net.Dialer
dialer *net.Dialer
}
type PcapPacketIOConfig struct {
PcapFile string
Realtime bool
PcapFile string
Realtime bool
}
func NewPcapPacketIO(config PcapPacketIOConfig) (PacketIO, error) {
handle, err := pcap.OpenOffline(config.PcapFile)
if err != nil {
return nil, err
}