Introduction 1
Part 1: Getting Started with Go 5
Chapter 1: Hello, Go! 7
Chapter 2: Working with Different Data Types 23
Chapter 3: Making Decisions 37
Chapter 4: Over and Over and Over: Using Loops 51
Chapter 5: Grouping Code into Functions 65
Part 2: Working with Data Structures 79
Chapter 6: Slicing and Dicing Using Arrays and Slices 81
Chapter 7: Defining the Blueprints of Your Data Using Structs 101
Chapter 8: Establishing Relationships Using Maps 113
Chapter 9: Encoding and Decoding Data Using JSON 129
Chapter 10: Defining Method Signatures Using Interfaces 151
Part 3: Multitasking in Go 163
Chapter 11: Threading Using Goroutines 165
Chapter 12: Communicating between Goroutines Using Channels 179
Part 4: Organizing Your Code 195
Chapter 13: Using and Creating Packages in Go 197
Chapter 14: Grouping Packages into Modules 211
Part 5: Seeing Go in Action 223
Chapter 15: Consuming Web APIs Using Go 225
Chapter 16: Getting Ready to Serve Using REST APIs 243
Chapter 17: Working with Databases 271
Part 6: The Part of Tens 285
Chapter 18: Ten Useful Go Packages to Create Applications 287
Chapter 19: Ten Great Go Resources 299
Index 303
Wei-Meng Lee is founder of Developer Learning Solutions, specializing in hands-on technology training. His name regularly appears in publications like DevX.com, MobiForge.com, and CODE Magazine. He is also the author of SwiftUI For Dummies, Beginning Swift Programming, Python Machine Learning, and Learning WatchKit Programming.