Goolge Go编程语言

今天google采用 BSD-style license推出开源的Go编程设计语言。

 

在Go的官网上宣称这是一种simple、fast、safe、concurrent,能快速构建,有着清晰的语法和垃圾回收机制,像一个动态语言但又有着静态语言的速度和安全性。

 

目前Go语言支持两种操作系统( Linux, Mac OS X)和三种指令集:amd64 (64-bit x86, the most mature port), 386 (32-bit x86), and arm (32-bit ARM, an incomplete port)。

 

 

* Go语言官网
http://golang.org/
(如果不能访问,请使用代理)

 

* 安装及环境设置
http://golang.org/doc/install.html

 

* 入门手册
http://golang.org/doc/go_tutorial.html


* 语法
http://golang.org/doc/effective_go.html

 


Hello world例子

 

Go 源文件后缀为.go
源码采用Unicode(UTF-8)

 

//


/

 

方法1.
    * 编译 6g(64b-x86),8g(32b-x86)
    * 链接 6l(64b-x86),8l(32b-x86)

 

6g(8g) helloworld.go -------->helloworld.6(helloworld.8)       //编译
6l(8l) helloworld.6(helloworld.8) ----->6.out(8.out)  //链接
6.out(8.out)                        //运行


方法2.
    * 编译、链接 gccgo

gccgo helloworld.go ----------->a.out        //编译、链接
a.out                               //运行

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值