Go 语言开发工具

Go 语言教程 · 2019-02-12 22:12:26

LiteIDE

LiteIDE 是一款开源、跨平台的轻量级 Go 语言集成开发环境(IDE)。

支持的 操作系统

  • Windows x86 (32-bit or 64-bit)
  • Linux x86 (32-bit or 64-bit)

下载地址 :http://sourceforge.net/projects/liteide/files/

源码地址 :https://github.com/visualfc/liteide

Eclipse

Eclipse 也是非常常用的开发利器,以下介绍如何使用 Eclipse 来编写 Go 程序。

1.4.eclipse1

Eclipse 编辑 Go 的主界面

  1. 首先下载并安装好 Eclipse
  2. 下载 goclipse 插件 https://github.com/GoClipse/goclipse/blob/latest/documentation/Installation.md#installation
  3. 下载 gocode,用于 go 的代码补全提示

    gocode 的 github 地址:

    https://github.com/nsf/gocode

    在 Windows下要安装 git,通常用 msysgit

    再在 cmd 下安装:

    go get -u github.com/nsf/gocode

    也可以下载代码,直接用 go build 来编译,会生成 gocode.exe

  4. 下载 MinGW 并按要求装好
  5. 配置插件

    Windows->Reference->Go

    (1)、配置 Go 的编译器

    1.4.eclipse2

    设置 Go 的一些基础信息

    (2)、配置 Gocode(可选,代码补全),设置 Gocode 路径为之前生成的 gocode.exe 文件

    1.4.eclipse3

    设置 gocode 信息

    (3)、配置 GDB(可选,做调试用),设置 GDB 路径为 MingW 安装目录下的 gdb.exe 文件

    1.4.eclipse4

    设置 GDB 信息

  6. 测试是否成功

    新建一个 go 工程,再建立一个 hello.go。如下图:

    1.4.eclipse5

    新建项目编辑文件

    调试如下(要在 console 中用输入命令来调试):

    1.4.eclipse6

    图 1.16 调试 Go 程序

点击查看所有 Go 语言教程 文章: https://codercto.com/courses/l/13.html

查看所有标签

Introduction to Computer Science Using Python

Introduction to Computer Science Using Python

Dierbach, Charles / 2012-12 / $ 133.62

Introduction to Computer Science Using Python: A Computational Problem-Solving Focus introduces students to programming and computational problem-solving via a back-to-basics, step-by-step, objects-la......一起来看看 《Introduction to Computer Science Using Python》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具