Question

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?

Was it helpful?

Solution

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".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top