- 时间:2022-03-08 06:34 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:Go语言eclipse环境搭建图文教程
本文实例讲述了Go语言eclipse环境搭建的方法。分享给大家供大家参考,具体如下:
[b]1 下载eclipse[/b]
[b]2 下载goeclipse[/b]
[url=http://code.google.com/p/goclipse/wiki/InstallationInstructions]http://code.google.com/p/goclipse/wiki/InstallationInstructions[/url]
[b]3 下载GoCode[/b]
[url=https://github.com/nsf/gocode]https://github.com/nsf/gocode[/url]
下载源码到Gopath路径下
Go build
[img]http://files.jb51.net/file_images/article/201607/2016727115001231.png?2016627115034[/img]
可以到父目录上生成了gocode.exe
[b]4 下载MinGW[/b]
[url=http://sourceforge.net/projects/mingw/files/MinGW/]http://sourceforge.net/projects/mingw/files/MinGW/[/url]
并按照要求安装
[b]5 设置Go环境[/b]
设置go环境变量
Windows->Reference-> Go
[img]http://files.jb51.net/file_images/article/201607/2016727115038869.png?2016627115051[/img]
设置gocode环境变量
Windows->Reference-> Go->Gocode
设置gocode path为之前生成的exe文件
设置GDB路径
[img]http://files.jb51.net/file_images/article/201607/2016727115054329.png?201662711514[/img]
[b]下面就可以进行单点调试和运行了[/b]
[img]http://files.jb51.net/file_images/article/201607/2016727115107804.png?2016627115121[/img]
希望本文所述对大家Go语言程序设计有所帮助。