摘要:
【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
阅读(351)
评论(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
阅读(269)
评论(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
阅读(596)
评论(0)
推荐(0)
浙公网安备 33010602011771号