# GO!

On Debian 12 you should probably use GO from backports
to get a newer version.
Set up backports repo and get it with
`sudo apt install -t bookworm-backports golang`

## Packaging DEB

- `sudo apt install git-buildpackage`
- Create directory `./debian`
- Create changelog with `dch --create`
- `sudo apt install dh-golang`

Example rules:
``` make
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
	dh $@ --builddirectory=_build
```

Check out [Debian Go-Team Packaging](https://go-team.pages.debian.net/packaging.html)