Back to Courses
AI017 Professional

Get Programming with Go

A beginner-friendly, hands-on introduction to the Go programming language. The course is structured into small, manageable lessons with a space-exploration theme, covering imperative programming, types, functions, methods, collections, state, and concurrency.

4.9
24.0h
749 students
0 likes
Artificial Intelligence
Start Learning

Lessons

Lesson

This lesson introduces Go as a high-performance, open-source language designed for cloud-native infrastructure and large-scale software engineering. Students will explore Go's core pillars of simplicity, efficiency, and reliability, and learn how its compiler facilitates error detection and maintainable code for complex distributed systems.

This lesson introduces the fundamentals of imperative programming in Go, focusing on the mandatory main package and func main() entry point. Students will also learn the importance of Go’s "One True Brace Style" and how the compiler's automatic semicolon insertion rules dictate specific syntax requirements.

This lesson explores the limitations of binary floating-point arithmetic in Go, explaining why decimal fractions like 0.1 cannot be represented precisely due to base-2 conversion errors. Students will learn to navigate the trade-offs between float32 and float64, emphasizing the importance of avoiding floating-point types for financial calculations and using appropriate precision for scientific data.

This lesson explores the principles of modularity in Go, focusing on how functions, abstraction, and the DRY (Don't Repeat Yourself) principle improve code maintainability and reduce complexity. Students will learn to define clear module boundaries and interfaces to build robust, scalable software systems.

This lesson introduces arrays in Go as fixed-length, type-specific collections used to manage bulk data efficiently. Students will learn how to use composite literals for initialization, navigate zero-based indices, and understand the importance of memory safety to avoid runtime panics.

This lesson introduces Go structures (structs) as a method for grouping disparate data types into cohesive, atomic units for better organization. Students will learn to define and manipulate these structures to manage complex telemetry data, such as Martian habitat coordinates and rover status, more effectively than with individual variables.

This lesson explores the concept of indirection in Go, focusing on how pointers store memory addresses to manage shared data efficiently. Students will learn to use the address operator (&) and dereference operator (*) to manipulate data, while applying these concepts to build performant, shared-state structures like a Sudoku validator.

This lesson explores concurrency in Go, focusing on using goroutines to manage independent tasks and synchronization tools like mutexes and select statements. Students will learn how to handle non-deterministic execution and implement robust worker patterns for multi-agent systems.

Course Overview

📚 Content Summary

A beginner-friendly, hands-on introduction to the Go programming language. The course is structured into small, manageable lessons with a space-exploration theme, covering imperative programming, types, functions, methods, collections, state, and concurrency.

Discover the joy of coding with Go through small lessons and seven spacefaring capstone projects.

Author: Nathan Youngman, Roger Peppé

Acknowledgments: Jennifer Stout, Marina Michaels, Matthew Merkes, Joel Kotarski, Aleksandar Dragosavljević, Renée French, Olga Shalakhina, Erick Zelaya, April Milne, Monica Kamsvaag.

🎯 Learning Objectives

  1. Define the Go programming language and its primary use cases.
  2. Explain the role of the Go compiler and its advantages over interpreters.
  3. Navigate the Go Playground to write, compile, and run code.
  4. Correctly structure Go code using the mandatory "one true brace style" to avoid syntax errors.
  5. Manage data using various variable declaration techniques and arithmetic assignment operators.
  6. Generate pseudorandom numbers and implement conditional logic using branching and logical operators.
  7. Declare and format floating-point variables using float32 and float64 with specific width and precision.
  8. Identify and mitigate errors caused by floating-point inaccuracies and integer wrap-around.
  9. Utilize the big package and untyped constants to handle numbers exceeding standard bit-size limits.
  10. Define and invoke functions using parameters, arguments, and variadic syntax.

Lessons