O’Reilly Media, 2019. — 560 p. — ISBN: 978-1-491-96955-7.
Go represents an attempt to improve on some weaknesses of traditional compiled programming languages. It de-emphasizes or removes error-prone language structures like class inheritance and exception handling. It features great concurrency support and automatic memory management (garbage collection).
Existing Go books tend to be highly technical in nature, teaching all aspects of the language regardless of their relevance to beginners. This book, rather than talking about the features of Go in abstract terms, features simple, clear examples that demonstrate Go in action, and diagrams to explain difficult concepts.
This book will not only teach developers basic language features, it will get them comfortable consulting error output, documentation, and search engines to find solutions to problems. It will teach all the conventions and techniques that employers expect an entry-level Go developer to know.
Let’s get going: Syntax Basics.
Which code runs next?: Conditionals and Loops.
Call me: Functions.
Bundles of code: Packages.
On the list: Arrays.
Appending issue: Slices.
Labeling data: Maps.
Building storage: Structs.
You’re my type: Defined Types.
Keep it to yourself: Encapsulation and Embedding.
What can you do?: Interfaces.
Back on your feet: Recovering from Failure.
Sharing work: Goroutines and Channels.
Code quality assurance: Automated Testing.
Responding to requests: Web Apps.
A pattern to follow: HTML Templates.
Congratulations!: You made it to the end.
This isn’t goodbye.
A. Understanding os. open file: Opening Files.
B. Six things we didn’t cover: Leftovers.