prepare (expecting Go is already installed):
apt install llvm clang libbpf-dev
on debian\ubuntu and derrivatives:
sudo ln -sf /usr/include/asm-generic/ /usr/include/asm
init the workspace:
go mod init my-ebpf-code
go get github.com/cilium/ebpf/cmd/bpf2go