Re: [go-nuts] Re: Alternatives to wrapping errors

2022-01-01 Thread David Finkel
On Fri, Dec 31, 2021 at 5:12 AM Brian Candler wrote: > On Friday, 31 December 2021 at 08:10:49 UTC Henry wrote: > >> The purpose of error wrapping is to give contextual information about the >> error. It is supposed to help you understand and locate the error. For >> instance, *"invalid filename"

[go-nuts] help with pcapgo

2022-01-01 Thread webuser 1300
I'm playing with "github.com/google/gopacket" and "github.com/google/gopacket/pcapgo" packetSource := gopacket.NewPacketSource(handle, handle.LinkType()) for packet := range packetSource.Packets() { app := packet.ApplicationLayer() b := app.Payload(