推荐:Go语言程序开发IDE

Goland

Goland是Jetbrains家族的系列商业版本ide
下载地址:Goland
在这里插入图片描述

LiteIDE

开源go语言IDE
源码地址:Github
在这里插入图片描述
下载地址:
LiteIDE

Eclipse:

在这里插入图片描述
安装插件:
下载goclips插件 https://github.com/GoClipse/goclipse/blob/latest/documentation/Installation.md#installation
配置插件
Windows->Reference->Go
(1)、配置 Go 的编译器
在这里插入图片描述
设置 Go 的一些基础信息

(2)、配置 Gocode(可选,代码补全),设置 Gocode 路径为之前生成的 gocode.exe 文件
在这里插入图片描述
设置 gocode 信息

(3)、配置 GDB(可选,做调试用),设置 GDB 路径为 MingW 安装目录下的 gdb.exe 文件
在这里插入图片描述
测试是否成功
新建一个 go 工程,再建立一个 hello.go。如下图:
在这里插入图片描述
新建项目编辑文件

调试如下(要在 console 中用输入命令来调试):
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43332010/article/details/120235882