ebpf
ebpf copied to clipboard
[Go 1.22] examples: avoid depending on internal packages
trafficstars
Technically this builds fine in CI, but these are supposed to function from outside the repo's ebpf module as well. These internal references were added after we removed the separate Go module from examples/.
Supersedes #1288
Thanks @antoniomerlin for reporting!
Turns out binary.NativeEndian was only merged in Go 1.21. Converting to draft until we drop support for 1.20.
@ti-mo I think this should be good now
@ti-mo can you fix the DCO violation?