The.Go.Programming.Language.0134190440.epub

zhanglin73346197 83 0 EPUB 2018-12-28 17:12:17

The Go Programming Language is the authoritative resource for any programmer who wants to learn Go. It shows how to write clear and idiomatic Go to solve real-world problems. The book does not assume prior knowledge of Go nor experience with any specific language, so you’ll find it accessible whether you’re most comfortable with JavaScript, Ruby, Python, Java, or C++. The first chapter is a tutorial on the basic concepts of Go, introduced through programs for file I/O and text processing, simple graphics, and web clients and se rvers. Early chapters cover the structural elements of Go programs: syntax, control flow, data types, and the organization of a program into packages, files, and functions. The examples illustrate many packages from the standard library and show how to create new ones of your own. Later chapters explain the package mechanism in more detail, and how to build, test, and maintain projects using the go tool. The chapters on methods and interfaces introduce Go’s unconventional approach to object-oriented programming, in which methods can be declared on any type and interfaces are implicitly satisfied. They explain the key principles of encapsulation, composition, and substitutability using realistic examples. Two chapters on concurrency present in-depth approaches to this increasingly important topic. The first, which covers the basic mechanisms of goroutines and channels, illustrates the style known as communicating sequential processes for which Go is renowned. The second covers more traditional aspects of concurrency with shared variables. These chapters provide a solid foundation for programmers encountering concurrency for the first time. The final two chapters explore lower-level features of Go. One covers the art of metaprogramming using reflection. The other shows how to use the unsafe package to step outside the type system for special situations, and how to use the cgo tool to create Go bindings for C libraries. The book features hundreds of interesting and practical examples of well-written Go code that cover the whole language, its most important packages, and a wide range of applications. Each chapter has exercises to test your understanding and explore extensions and alternatives. Source code is freely available for download from http://gopl.io/ and may be conveniently fetched, built, and installed using the go get command. Table of Contents Chapter 1. Tutorial Chapter 2. Program Structure Chapter 3. Basic Data Types Chapter 4. Composite Types Chapter 5. Functions Chapter 6. Methods Chapter 7. Interfaces Chapter 8. Goroutines and Channels Chapter 9. Concurrency with Shared Variables Chapter 10. Packages and the Go Tool Chapter 11. Testing Chapter 12. Reflection Chapter 13. Low-Level Programming rvers. Early chapters cover the structural elements of Go programs: syntax, control flow, data types, and the organization of a program into packages, files, and functions. The examples illustrate many packages from the standard library and show how to create new ones of your own. Later chapters explain the package mechanism in more detail, and how to build, test, and maintain projects using the go tool. The chapters on methods and interfaces introduce Go’s unconventional approach to object-oriented programming, in which methods can be declared on any type and interfaces are implicitly satisfied. They explain the key principles of encapsulation, composition, and substitutability using realistic examples. Two chapters on concurrency present in-depth approaches to this increasingly important topic. The first, which covers the basic mechanisms of goroutines and channels, illustrates the style known as communicating sequential processes for which Go is renowned. The second covers more traditional aspects of concurrency with shared variables. These chapters provide a solid foundation for programmers encountering concurrency for the first time. The final two chapters explore lower-level features of Go. One covers the art of metaprogramming using reflection. The other shows how to use the unsafe package to step outside the type system for special situations, and how to use the cgo tool to create Go bindings for C libraries. The book features hundreds of interesting and practical examples of well-written Go code that cover the whole language, its most important packages, and a wide range of applications. Each chapter has exercises to test your understanding and explore extensions and alternatives. Source code is freely available for download from http://gopl.io/ and may be conveniently fetched, built, and installed using the go get command. Table of Contents Chapter 1. Tutorial Chapter 2. Program Structure Chapter 3. Basic Data Types Chapter 4. Composite Types Chapter 5. Functions Chapter 6. Methods Chapter 7. Interfaces Chapter 8. Goroutines and Channels Chapter 9. Concurrency with Shared Variables Chapter 10. Packages and the Go Tool Chapter 11. Testing Chapter 12. Reflection Chapter 13. Low-Level Programming

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:17

很好的资源

Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:17

Go语言神书+10086啊,必须感谢分享

Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:17

下载失败,需要重新下载,谢谢分享。

Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:17

谢谢分享,很好的原版书。

Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:17

挺不错的,英文原版书,没的挑

Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:17

The book is very valuable for learning go

Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:17

很好, 很清晰, 英文版的, 讲的很详细

Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:17

不错 好书 谢谢分享

Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:17

真好的得分答复是发的

Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:17

GO语言权威指南!