中文名: Google Go 语言开发安装包
英文名: The Google Go language install package
资源格式: 压缩包
发行时间: 2010年
地区: 大陆
语言: 简体中文
简介:
Go语言的官方介绍:
Go is …
… simple
package main
import "fmt"
func main() {
fmt.Printf("Hello, 世界\n")
}Go has a small, simple feature set, making it easy to learn.
… fast
Go compilers produce fast code fast. Typical builds take a fraction of a second yet the resulting programs run nearly as quickly as comparable C or C++ code.
… concurrent
Go promotes writing systems and servers as sets of lightweight communicating processes, called goroutines, with strong support from the language. Run thousands of goroutines if you want—and say good-bye to stack overflows.
… safe
Go is type safe and memory safe. Go has pointers but no pointer arithmetic. For random access, use slices, which know their limits.
… fun
Go has fast builds, clean syntax, garbage collection, methods for any type, and run-time reflection. It feels like a dynamic language but has the speed and safety of a static language. It's a joy to use.
… open source
Go for it.
本安装包的使用(以Ubuntu系统为例,不同的系统的情况可能不一样,请注意):
将安装包解压缩,得到两个目录bin和go,放在你选择的目录下(我是放在$HOME下),设置环境变量如下即可:
export GOBIN=$HOME/bin
export PATH="$GOBIN:$PATH"
export GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux
如果成功,在终端下敲入·8g·,应该出现以下信息:
root@investoday:/# 8g
gc: usage: 8g [flags] file.go...
flags:
-I DIR search for packages in DIR
-d print declarations
-e no limit on number of errors printed
-f print stack frame structure
-h panic on an error
-o file specify output file
-S print the assembly language
-V print the compiler version
-u disable package unsafe
-w print the parse tree after typing
-x print lex tokens
当然如果你不嫌麻烦,且可以上网,推荐按官方文档的步骤安装。
相关资源如下:
1.Go语言官方网站:http://golang.org/
2.Go语言中文论坛:http://bbs.golang-china.org/
3.Go语言中文Wiki:http://wiki.golang-china.org/
4.Go语言中文官网:http://golang-china.org/
5.中文文档版本库(SVN):http://code.google.com/p/golang-china/
6.GitHub与本站SVN同步(GIT):http://github.com/border/golang-china
7.其他资源:QQ群(102319854);中文小组邮件列表 ;GolangChina@Twitter
8.Go Programming Language Resources