go2fmt: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/go2fmt - from package: libgo-perl

You may install the required package with command apt-get install {package}
Error in other languages:
go2fmt: bevel nie gevind nie
go2fmt: comandă negăsită
go2fmt: comando não encontrado
go2fmt: commande introuvable
go2fmt: command not found
go2fmt: käsku ei ole
go2fmt: không tìm thấy lệnh
go2fmt: komanda nerasta
go2fmt: Kommando nicht gefunden.
go2fmt: kommandot finns inte
go2fmt: komut yok
go2fmt: nie znaleziono polecenia
go2fmt: níor aimsíodh an t-ordú
go2fmt: no se encontró la orden
go2fmt: no s'ha trobat l'ordre
go2fmt: opdracht niet gevonden
go2fmt: parancs nem található
go2fmt: perintah tidak ditemukan
go2fmt: príkaz nenájdený
go2fmt: příkaz nenalezen
go2fmt: команда не найдена
go2fmt: командата не е открита
go2fmt: 命令找不到
go2fmt: コマンドが見つかりません