The linked article is very old, and eBPF moves very fast. For working with eBPF and Go, I would recommend the library used by Cilium. https://github.com/cilium/ebpf
I agree that the article is rather old for the eBPF world. But in contrast to the Cilium library, gobpf from the article (https://github.com/iovisor/gobpf) has support for bcc, i.e., all their helper functions, which could be interesting to some (at least it was interesting to me).