golang-eg: 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/golang-eg - from package: golang-go.tools

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