nbsp; "GOPATH": "E:\\mygo"
},
三.编写和运行Go程序
1.用sublime在gopath/src目录下新建一个程序hello.go,代码如下
2.运行go程序 CTRL+B打开sublime的命令行,在提示符下输入 go run hello.go
3.编译生成exe程序 CTRL+B打开sublime的命令行,在提示符下输入 go build hello.go
四 .go语言学习资料
1.go指南:官网链接:https://go-tour-zh.appspot.com/welcome/1(需要梯子),如果无法打开请用国内链接:http://tour.studygolang.com/
2.《the way to go》,如果看英文感觉吃力,github上无闻大牛已经做了中文译本:https://github.com/Unknwon/the-way-to-go_ZH_CN
3.《Go 学习笔记 第三版》雨痕写的,该电子书在github开源:https://github.com/qyuhen/book
4.《go web 编程》,是谢大(beego的作者)写的电子书,github中文目录链接:https://github.com/astaxie/build-web-application-with-golang/blob/master/zh/preface.md
5.《go编程基础》视频教程,此教程是无闻大牛讲解的,github视频链接:https://github.com/Unknwon/go-fundamental-programming