saitti/docs/programming/go.md
2025-01-24 05:27:39 +02:00

560 B

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:

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

Check out Debian Go-Team Packaging