Perfect for beginners familiar with programming basics, this hands-on guide provides an easy introduction to Go, the general-purpose programming language from Google. Author Caleb Doxsey covers the language’s core features with step-by-step instructions and exercises in each chapter to help you practice what you learn.
Go is a general-purpose programming language with a clean syntax and advanced features, including concurrency. This book provides the one-on-one support you need to get started with the language, with short, easily digestible chapters that build on one another. By the time you finish this book, not only will you be able to write real Go programs, you'll be ready to tackle advanced techniques.
Jump into Go basics, including data types, variables, and control structures
Learn complex types, such as slices, functions, structs, and interfaces
Explore Go’s core library and learn how to create your own package
Write tests for your code by using the language’s go test program
Learn how to run programs concurrently with goroutines and channels
Get suggestions to help you master the craft of programming
The animal on the cover of Introducing Go is a Botta's pocket gopher (Thomomys bottae). It is part of the Geomyidae family and can be found in western North America. They are also known as valley pocket gophers.
In terms of size, the Botta's pocket gopher is considered medium in comparison with other gopher breeds. Males are typically larger than females, weighing between 5.6–8.8 ounces, and 4.2–7.1 ounces, respectively. Length varies between 6–10 inches from the tip of the nose to the end of the tail. Colors of this particular gopher range from a light gray to black and usually depend on the color of the soil in which a particular gopher inhabits. Gophers of darker skin tones and ones that suffer from albinoism have also been spotted. The "pocket" in their name is derived from the two pouches found at their cheeks and extending to their shoulders.
Botta's pocket gophers are strictly herbivores and their water consumption comes from eating a variety of vegetation. They pull plants underground from their roots and typically eat within their burrows. They are able to do this using their two front teeth, which are located outside of the mouth. They will eat for most of their waking hours, but those hours are not limited to day or night times. They have been known to forage above ground at night with the safety of darkness.
Breeding for the Botta's pocket gopher typically takes place during the spring months, though in areas with plenty of food resources, it can happen year round. Being solitary animals with one adult to each burrow, males will go in search of females. This usually happens more than once during breeding season, as females outnumber males in the population. Gestation is a short 18–19 days. Litters can be as large as 12 hairless and blind pups, but are usually much smaller in size (typically 1–7). Pups will start to wean and become independent around 40 days after birth.
Many of the animals on O'Reilly covers are endangered; all of them are important to the world. To learn more about how you can help, go to animals.oreilly.com.
The cover image is from a loose plate, the source of which is unknown. The cover fonts are URW Typewriter and Guardian Sans. The text font is Adobe Minion Pro; the heading font is Adobe Myriad Condensed; and the code font is Dalton Maag's Ubuntu Mono.
I picked up this book knowing nothing about Go but being a decent c/c++ programmer. The book did a great job explaining everything from good practices and compiler setup, to external packages and debugging without going into excruciating detail. Don't expect to become a seasoned programmer with just this book. However, for a book that you can read in a weekend, it will definitely help you hit the ground running. My only complaint is that I wish there were more complete code samples in the appendix. The reason for this is that the book uses a lot of truncated code for examples. Normally this is a good thing so the book is less overwhelming. but it can be frustrating for someone new to a strongly typed language who is not familiar with all the packages.
Bottom Line Yes, I would recommend this to a friend