Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Get Programming with Go
Get Programming with Go
Get Programming with Go
Ebook634 pages4 hours

Get Programming with Go

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Summary

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 Technology

Go 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 Book

Hobbyists, 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 inside

  • Language 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 Reader

This book is for anyone familiar with computer programming, as well as anyone with the desire to learn.

About the Author

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

Table of Contents

    Unit 0 - GETTING STARTED
  1. Get ready, get set, Go
  2. Unit 1 - IMPERATIVE PROGRAMMING
  3. A glorified calculator
  4. Loops and branches
  5. Variable scope
  6. Capstone: Ticket to Mars
  7. Unit 2 - TYPES
  8. Real numbers
  9. Whole numbers
  10. Big numbers
  11. Multilingual text
  12. Converting between types
  13. Capstone: The Vigenère cipher
  14. Unit 3 - BUILDING BLOCKS
  15. Functions
  16. Methods
  17. First-class functions
  18. Capstone: Temperature tables
  19. Unit 4 - COLLECTIONS
  20. Arrayed in splendor
  21. Slices: Windows into arrays
  22. A bigger slice
  23. The ever-versatile map
  24. Capstone: A slice of life
  25. Unit 5 - STATE AND BEHAVIOR
  26. A little structure
  27. Go's got no class
  28. Composition and forwarding
  29. Interfaces
  30. Capstone: Martian animal sanctuary
  31. Unit 6 - DOWN THE GOPHER HOLE
  32. A few pointers
  33. Much ado about nil
  34. To err is human
  35. Capstone: Sudoku rules
  36. Unit 7 - CONCURRENT PROGRAMMING
  37. Goroutines and concurrency
  38. Concurrent state
  39. Capstone: Life on Mars
LanguageEnglish
PublisherManning
Release dateAug 27, 2018
ISBN9781638355472
Get Programming with Go
Author

Roger Peppe

Roger Peppe is a Go contributor, maintains a number of open source Go projects, runs the Newcastle upon Tyne Go meetup, and works on Go cloud infrastructure software.

Related to Get Programming with Go

Related ebooks

Programming For You

View More

Related articles

Reviews for Get Programming with Go

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Get Programming with Go - Roger Peppe

    {1abook_preview_excerpt.html}˒ɱ寤6cM"S֚b棌n dldfQ nl3/K%s{DfH&]Z,qn)g/]"K ̕SWDH"W&LyfQH+^2zgL[VhYS&R3a^4viiaU3ҊO̖UU욢0E-tl`No)ޜFkʭǮMeNiw땍S&®LY`ا~c~{s%I+Exx\/lVR?2H?;?{;M^O12y0~M7-)YDTQi+[ؤ݉.↷rϬJ4MFQU;ϤejoLU<ե)c]3Y)IN?7o^͚`@GhanЩ%ajݩHkzUELn D]+*0%[T0-04he?ilnrBYoax; rY2̦?ӝwn^_Y\Y"MZؐJ3,d&v s Ԇ&rs4TqJ &샦73[ՑAja3?yUNc+(e5!shۊctG&QڛMG#ڬ:~楴&(:?d #A94B] Kǿ5"՜6I}B`j +G_{?ZgE ObB`0Th299>;SckK[1~ta?ڔ2 #|7ixdk]V Ei27ٯxU~Io܍Y'^rˀ^ih"Aē/2K-Udqu(E]Mj˧ Bik:HUUiV4ӥ f>(0c* S5L~*[݄٩nɫc7GϞ<??<;{lU6Jy|Ma(z=FϢoы+grM&DcTag'3D/8-0[Uiaηpkhy>TIÿ4;$ԃ PMB-4v3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