摘要:
【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 ... 阅读全文
摘要:
【Go Methods and Interfaces】1、Go does not have classes. However, you can define methods on struct types. Themethod receiverappears in its own argument... 阅读全文
摘要:
【Go structs、slices、maps】1、定义时*在变量名后面,使用时*在变量名前面。 2、定义struct,type在前,struct关键字在后。 3、指针可以指定struct。 4、A struct literal denotes a newly allocated stru... 阅读全文