
golang
iteye_7030
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
golang install for mac
转自 http://www.kelvinwong.ca/2009/11/12/installing-google-go-on-mac-os-x-leopard/ To get started, make sure that you have Python and Mercurial installed on your Intel Mac (PowerPC is not supported ...原创 2012-09-19 01:58:06 · 227 阅读 · 0 评论 -
Go 变量(Go中文读书笔记)
Erlang 与 go在部分功能上相似。Erlang和Go主要的区别是Erlang是运行在虚拟机上的函数式语言,而Go是命令式语言 Erlang是运行在虚拟机上,而Go是编译的。Go用起来感觉更加接近Unix Go语言如果希望将两个或则更多的语句放在一行它们必须使用分号(;)分隔。 多个变量或者const 和 import 声明可以使用括号 var ( x int...原创 2012-09-22 21:42:24 · 136 阅读 · 0 评论 -
Go 控制语句(Go中文读书笔记)
Go 中只有很少几个结构控制。没有do或者while循环 只有for、switch、if还有叫做类型选择和多路通信转接器select 与其他语言比较是没有圆括号、而语句体必须总是包含在大括号内 if x >0 { return x } else { return y } 强制大括号鼓励将简单的if语句写在多行上。 if和switch 接受初始化语句。通常设...原创 2012-09-22 22:13:31 · 158 阅读 · 0 评论 -
Go 语言集合(Go中文读书笔记)
Go 语言中的内构函数,不需要任何引用 close new panic complex closed make recover real len append print image cap copy println close 和closed 用于channel通信和关闭channel len 和cap 可用于不同的类型 len用于返回字符串、slice和数...原创 2012-09-22 23:26:19 · 204 阅读 · 0 评论