《Google Go 语言开发安装包》(The Google Go language install package)[压缩包]

王朝资源·作者佚名  2010-08-04
 说明  因可能的版权问题本站不提供该资源的存贮、播放、下载或推送,本文仅为内容简介。

中文名: 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

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航