Hello,Go!
fsk215 · · 2328 次点击 · · 开始浏览what is Go?
什么是Go?
Go is an expressive, concurrent, garbage-collected programming language.
Go 是一门富有表达性的,并行的,具有垃圾回收的系统编程语言.
Go语言的homepage http://golang.org/
install Go compilers, tools, and libraries.
安装Go编译器,工具包和库
go tools下载地址: http://code.google.com/p/go/downloads/list
linux环境(明天搞)
windows环境
在win环境下Go 语言项目提供两种安装方式,
1)MSI格式的安装包,默认安装在C:\Go\下,并且默认配置好了Go语言的环境变量和bin的path。
{GOROOT -> C:\Go\}环境变量
{path -> C:\Go\bin} path配置
2)zip压缩包。解压到任意目录dir后,配置环境变量GOROOT->dir\Go,配置path变量dir:\Go\bin
Test your installation
测试安装
写一个hello world 测试安装是否成功...
创建一个文件名为hello.go
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}
打开console,运行go run hello.go,如果你看到 "hello, world" 代表安装成功!
(未完待续)
相关阅读
Go Nuts http://groups.google.com/group/golang-nuts
The FAQ http://golang.org/doc/go_faq.htm
A Tour of Go http://tour.golang.org/#1
Go,互联网时代的C语言 http://www.infoq.com/cn/presentations/go-internet-c-lang
许式伟《Go语言编程》样章"面向对象编程 http://www.ituring.com.cn/article/1339
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
关注微信- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码` - 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传
收入到我管理的专栏 新建专栏
what is Go?
什么是Go?
Go is an expressive, concurrent, garbage-collected programming language.
Go 是一门富有表达性的,并行的,具有垃圾回收的系统编程语言.
Go语言的homepage http://golang.org/
install Go compilers, tools, and libraries.
安装Go编译器,工具包和库
go tools下载地址: http://code.google.com/p/go/downloads/list
linux环境(明天搞)
windows环境
在win环境下Go 语言项目提供两种安装方式,
1)MSI格式的安装包,默认安装在C:\Go\下,并且默认配置好了Go语言的环境变量和bin的path。
{GOROOT -> C:\Go\}环境变量
{path -> C:\Go\bin} path配置
2)zip压缩包。解压到任意目录dir后,配置环境变量GOROOT->dir\Go,配置path变量dir:\Go\bin
Test your installation
测试安装
写一个hello world 测试安装是否成功...
创建一个文件名为hello.go
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}
打开console,运行go run hello.go,如果你看到 "hello, world" 代表安装成功!
(未完待续)
相关阅读
Go Nuts http://groups.google.com/group/golang-nuts
The FAQ http://golang.org/doc/go_faq.htm
A Tour of Go http://tour.golang.org/#1
Go,互联网时代的C语言 http://www.infoq.com/cn/presentations/go-internet-c-lang
许式伟《Go语言编程》样章"面向对象编程 http://www.ituring.com.cn/article/1339