Manning Publications, 2018. — 360 p. — ISBN10: 1617293091.
Get Programming with Go introduces you to the powerful Go language without confusing jargon or high-level theory. By working through 32 quick-fire lessons, you'll quickly pick up the basics of the innovative Go programming language!
Purchase of the print book includes a free eBook in PDF, Kindle, and EPUB formats from Manning Publications.
About the TechnologyGo is a small programming language designed by Google to tackle big problems. Large projects mean large teams with people of varying levels of experience. Go offers a small, yet capable, language that can be understood and used by anyone, no matter their experience.
About the BookHobbyists, newcomers, and professionals alike can benefit from a fast, modern language; all you need is the right resource! Get Programming with Go provides a hands-on introduction to Go language fundamentals, serving as a solid foundation for your future programming projects. You'll master Go syntax, work with types and functions, and explore bigger ideas like state and concurrency, with plenty of exercises to lock in what you learn.
What's insideLanguage concepts like slices, interfaces, pointers, and concurrency
Seven capstone projects featuring spacefaring gophers, Mars rovers, ciphers, and simulations
All examples run in the Go Playground - no installation required!
About the ReaderThis book is for anyone familiar with computer programming, as well as anyone with the desire to learn.
About the AuthorsNathan Youngman organizes the Edmonton Go meetup and is a mentor with Canada Learning Code. Roger Peppé contributes to Go and runs the Newcastle upon Tyne Go meetup.
Getting StartedGet ready, get set, Go
Imperative ProgrammingA glorified calculator
Loops and branches
Variable scope
Capstone: Ticket to Mars
TypesReal numbers
Whole numbers
Big numbers
Multilingual text
Converting between types
Capstone: The Vigenère cipher
Building BlocksFunctions
Methods
First-class functions
Capstone: Temperature tables
CollectionsArrayed in splendor
Slices: Windows into arrays
A bigger slice
The ever-versatile map
Capstone: A slice of life
State and BehaviorA little structure
Go's got no class
Composition and forwarding
Interfaces
Capstone: Martian animal sanctuary
Down the Gopher HoleA few pointers
Much ado about nil
To err is human
Capstone: Sudoku rules
Concurrent ProgrammingGoroutines and concurrency
Concurrent state
Capstone: Life on Mars