Go Programming Language, The

Go Programming Language, The

Description

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 servers.
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.

Similar Books

ISBN 10: 1491941197
ISBN 13: 9781491941195

22 Aug 2017
Katherine Cox-buday

ISBN 10: 1449373321
ISBN 13: 9781449373320

02 Apr 2017
Martin Kleppmann

ISBN 10: 0135957052
ISBN 13: 9780135957059

09 Jan 2020
David Thomas

ISBN 10: 0132350882
ISBN 13: 9780132350884

01 Mar 2009
Robert Martin

ISBN 10: 1617291781
ISBN 13: 9781617291784

26 Nov 2015
Brian Ketelsen

ISBN 10: 0201633612
ISBN 13: 9780201633610

01 Jul 1997
Erich Gamma

ISBN 10: 1492046531
ISBN 13: 9781492046530

29 Oct 2019
Brendan Burns

ISBN 10: 1718500440
ISBN 13: 9781718500440

12 Aug 2019
Steve Klabnik

ISBN 10: 0134757599
ISBN 13: 9780134757599

04 Jan 2019
Martin Fowler

ISBN 10: 0134494164
ISBN 13: 9780134494166

20 Sep 2017
Robert Martin

ISBN 10: 1449355730
ISBN 13: 9781449355739

02 Aug 2013
Mark Lutz

ISBN 10: 1617293725
ISBN 13: 9781617293726

22 Jan 2018
Marko Luksa