我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在Geany中运行Go

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

近期文章

  • 具有Golang的LiteIDE GDB
  • 我真的对导入所需的软件包感到困惑,但是nobuild_files排除了其所有文件
  • 无法使用包“ golang.org/x/oauth2”与facebook进行身份验证:“缺少redirect_uri参数”
  • 为什么垃圾收集器没有清除内存块?
  • Golang惯用方式从多行字符串中删除空白行
  • golang内存爆炸:newdefer
  • 在解析错误时控制fmt.Parse输出
  • termbox-go-从控制台读取数据
  • 循环和闭包中的Println输出不同的值
  • 运行Go程序时出错
  • 访问通过POST从文件接收的JSON
  • Go App无法捕获信号
  • 在Go中输出无引号的Unicode
  • 通过Golang API将大文件上传到Google云端硬盘
  • 如何从Go进行stdcall
  • Docker和文件锁定
  • 如何在Go服务器中创建自定义域别名?
  • 有没有一种方法可以为node.js的golang库创建绑定?
  • 在Go中使用数字签名
  • 如何将go mod升级到v2或更高版本?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华