Tekkaman

导航

 

2015年2月6日

摘要: 【Go Concurrency】1、Agoroutineis a lightweight thread managed by the Go runtime. 2、Channels are a typed conduit through which you can send and receive ... 阅读全文
posted @ 2015-02-06 20:07 Tekkaman 阅读(344) 评论(0) 推荐(0) 编辑
 
摘要: 【Go Methods and Interfaces】1、Go does not have classes. However, you can define methods on struct types. Themethod receiverappears in its own argument... 阅读全文
posted @ 2015-02-06 19:13 Tekkaman 阅读(263) 评论(0) 推荐(0) 编辑
 
摘要: 【Go structs、slices、maps】1、定义时*在变量名后面,使用时*在变量名前面。 2、定义struct,type在前,struct关键字在后。 3、指针可以指定struct。 4、A struct literal denotes a newly allocated stru... 阅读全文
posted @ 2015-02-06 12:55 Tekkaman 阅读(589) 评论(0) 推荐(0) 编辑