Book description
Your Hands-On Guide to Go, the Revolutionary New Language Designed for Concurrency, Multicore Hardware, and Programmer Convenience
Today’s most exciting new programming language, Go, is designed from the ground up to help you easily leverage all the power of today’s multicore hardware. With this guide, pioneering Go programmer Mark Summerfield shows how to write code that takes full advantage of Go’s breakthrough features and idioms.
Both a tutorial and a language reference, Programming in Go brings together all the knowledge you need to evaluate Go, think in Go, and write high-performance software with Go. Summerfield presents multiple idiom comparisons showing exactly how Go improves upon older languages, calling special attention to Go’s key innovations. Along the way, he explains everything from the absolute basics through Go’s lock-free channel-based concurrency and its flexible and unusual duck-typing type-safe approach to object-orientation.
Throughout, Summerfield’s approach is thoroughly practical. Each chapter offers multiple live code examples designed to encourage experimentation and help you quickly develop mastery. Wherever possible, complete programs and packages are presented to provide realistic use cases, as well as exercises. Coverage includes
Quickly getting and installing Go, and building and running Go programs
Exploring Go’s syntax, features, and extensive standard library
Programming Boolean values, expressions, and numeric types
Creating, comparing, indexing, slicing, and formatting strings
Understanding Go’s highly efficient built-in collection types: slices and maps
Using Go as a procedural programming language
Discovering Go’s unusual and flexible approach to object orientation
Mastering Go’s unique, simple, and natural approach to fine-grained concurrency
Reading and writing binary, text, JSON, and XML files
Importing and using standard library packages, custom packages, and third-party packages
Creating, documenting, unit testing, and benchmarking custom packages
Table of contents
- Title Page
- Copyright Page
- Dedication
- Contents at a Glance
- Contents
- Tables
- Introduction
- 1. An Overview in Five Examples
- 2. Booleans and Numbers
- 3. Strings
- 4. Collection Types
- 5. Procedural Programming
- 6. Object-Oriented Programming
- 7. Concurrent Programming
- 8. File Handling
- 9. Packages
- A. Epilogue
- B. The Dangers of Software Patents
- C. Selected Bibliography
- Index
- Mark Summerfield
- Production
Product information
- Title: Programming in Go: Creating Applications for the 21st Century
- Author(s):
- Release date: May 2012
- Publisher(s): Addison-Wesley Professional
- ISBN: None
You might also like
book
Go in 24 Hours, Sams Teach Yourself: Next Generation Systems Programming with Golang, First Edition
In just 24 sessions of one hour or less, Sams Teach Yourself Go in 24 Hours …
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
Go: Design Patterns for Real-World Projects
An insightful guide to learning the Go programming language About This Book Get insightful coverage of …
book
Go in Practice
Summary Go in Practice guides you through 70 real-world techniques in key areas like package management, …