godoc: 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 CentOS possible default full paths are:

/usr/bin/godoc - from package: golang-godoc

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/godoc - from package: golang-go.tools

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