質問

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?

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top