Pregunta

I am trying to run go code in geany.

Unfortunately I get this error when I try to execute:

./geany_run_script.sh: 5: ./geany_run_script.sh: go: not found

I know some posts say that one must compile or build before running but the go run command compiles and runs at the same time, so ...

How does one run go code in geany?

¿Fue útil?

Solución

The solution is to go to Build>Set Build Commands in the Geany options, under the Execute commands section, write the full path to your go executable, so /path/to/go/bin/go run "%f".

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top