读书笔记
Page content
[TOC]
读书笔记
为什么使用GO
Solving modern programming challenges with Go
Go runs as fast as C or C++, and offers rapid development like Ruby and Python.
a.few key words
b.complies fast
c.concurrency
d. garbage collector
开发速度
因为编译执行快。静态类型,类型安全。
并发
Goroutines are like threads, but use far less memory and require less code to use.
Channels are used to send message between goroutines with synchronization built in.
Channels are data structures that enable safe data communication between goroutines.
That exchange is also synchronized, and both goroutines can have guarantees the exchange has been made. This safe exchange of data between goroutines requires no other locks or synchronization mechanisms.
Go的类型系统
无需继承,最大限度的