saitti/docs/programming/go.md

24 lines
560 B
Markdown
Raw Permalink Normal View History

2025-01-24 05:13:48 +02:00
# 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)