libbpfgo gonew template

Quickly start a new libbpfgo project with this gonew template.

$ go install golang.org/x/tools/cmd/gonew@latest
$ gonew github.com/djoreilly/libbpfgo-template your.domain/myprog

Submodules don't seem to work with gonew, so add it manually:

$ cd myprog
$ git init
$ git submodule add https://github.com/libbpf/libbpf.git