Have a look at the
example/ directory in dh-golang to see how it is meant to be used.
Essentially, export the DH_GOPKG variable containing the canonical upstream
location of the package (e.g. github.com/stapelberg/godebiancontrol)
and then use
dh [email protected] --buildsystem=golang --with=golang. That’s it!
Now, given that this package is very new and only two packages use it so far (both of which are not yet in Debian, but real soon™), there are most likely bugs and missing features. This is where you come in: when packaging software written in Go, please contact me and tell me whether dh-golang worked for you and what could be improved. In case something does not work, definitely report it. Even if everything worked, I’d be happy to have a look at your packaging before you upload.