The eBPF Library for Go
ebpf-go is a Go library for working with eBPF. It does
not depend on C, libbpf, or any other Go libraries other than the standard
library, making it an excellent choice for writing self-contained, portable
tools that run on a variety of architectures.
This documentation aims to provide a central resource for learning how to build Go applications that use eBPF.
ebpf-go as a dependency to an existing Go module, run this from within
the module's directory:
This documentation assumes familiarity with the basic concepts and terminology of eBPF, as well as a basic understanding of the Go toolchain and how to write idiomatic Go code.
For a high-level understanding of what eBPF is and how it works, please see the eBPF introduction at ebpf.io.