google / google/gopacket

Ignoring fmt.Stringer with LayerString()

Open
#683 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

If a layer embeds a type that implements `fmt.Stringer`, `LayerString()` will use its `String()` method instead of printing out a useful representation of the entire layer. This effectively means fields with `String()` methods cannot be used in a layer without making them difficult to print. Is there a way to force `LayerString()` to ignore a `String()` method on a layer?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.