MCPcopy Index your code
hub / github.com/google/gopacket / panicToError

Function panicToError

parser.go:328–332  ·  view source on GitHub ↗
(e *error)

Source from the content-addressed store, hash-verified

326}
327
328func panicToError(e *error) {
329 if r := recover(); r != nil {
330 *e = fmt.Errorf("panic: %v", r)
331 }
332}
333
334// DecodingLayerParserOptions provides options to affect the behavior of a given
335// DecodingLayerParser.

Callers 1

DecodeLayersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…