Go语言的核心语言特性包括:类型系统、接口和并发性。这三部分是Go语言的精髓、美感和重要特征。 《Go语言核心编程》一书紧紧围绕着这三个主题。采用“类型系统”例如,Go 语言中的类型包括:简单类型、复合类型、命名类型、未命名类型、静态类型、动态类型、底层类型、接口类型、具体类型和类型字面量。这些概念在其他 Go 书籍中很少介绍。本书试图帮助读者梳理这些类型的含义,建立概念,认识类型的本质并学会正确使用它们;对接口的机制进行了分析,让读者对Go语言的非侵入式接口有更深入的了解;在并发编程章节,书中给出了5种并发编程范式,并用图来描述并发程序的模型,通俗易懂。这也是读这本书的特点。
(The core language features of the Go language include: type system, interface and concurrency. These three parts are the essence, beauty and important features of the Go language. The book "Core Programming with Go Language" closely revolves around these three themes. Using the "type system" For example, types in Go language include: simple types, composite types, named types, unnamed types, static types, dynamic types, underlying types, interface types, concrete types, and type literals. These concepts are rarely covered in other Go books. This book tries to help readers sort out the meaning of these types, establish concepts, understand the essence of types and learn to use them correctly; it analyzes the mechanism of interfaces, so that readers can have a deeper understanding of the non-intrusive interfaces of Go language; In the programming chapter, five concurrent programming paradigms are given in the book, and diagrams are used to describe the model of concurrent programs, which is easy to understand. This is also the characteristic of reading this book.)