Go course

A small, fast language for backends, tools and network services. From variables to generics, then two small projects.
17 chapters, 97 lessons
Variables
5 lessons

- Hello, Gopher!Output exerciseNot started
- Declaring VariablesOutput exerciseNot started
- Short Variable Declaration
:=Test exerciseNot started - Basic Data TypesCode exampleNot started
- Quiz: VariablesQuizNot started
Constants and Formatting
6 lessons
- ConstantsTest exerciseNot started
- Constant Blocks and Untyped ConstantsCode exampleNot started
- Formatting Output with
fmt.PrintfOutput exerciseNot started - Building Strings with
fmt.SprintfTest exerciseNot started - Column Width and PaddingTest exerciseNot started
- Quiz: Constants and FormattingQuizNot started
Conditionals
6 lessons
- Branching with
ifandelseTest exerciseNot started - Logical OperatorsTest exerciseNot started
ifwith an Init StatementTest exerciseNot startedswitchTest exerciseNot started- Tagless
switchandfallthroughTest exerciseNot started - Quiz: ConditionalsQuizNot started
Functions
6 lessons
- Parameters and Return ValuesTest exerciseNot started
- Multiple Return ValuesTest exerciseNot started
- Early Returns and Guard ClausesTest exerciseNot started
- Functions as ValuesTest exerciseNot started
deferOutput exerciseNot started- Quiz: FunctionsQuizNot started
Structs
6 lessons
- Defining StructsTest exerciseNot started
- Nested StructsTest exerciseNot started
- Anonymous StructsCode exampleNot started
- Embedded StructsTest exerciseNot started
- Methods on StructsTest exerciseNot started
- Quiz: StructsQuizNot started
Interfaces
6 lessons
- Getting to Know InterfacesTest exerciseNot started
- Satisfying Several InterfacesTest exerciseNot started
- Type AssertionsTest exerciseNot started
- Type Switches and
anyTest exerciseNot started - The
StringerInterfaceOutput exerciseNot started - Quiz: InterfacesQuizNot started
Errors
5 lessons
- The
errorInterfaceTest exerciseNot started fmt.Errorfand Wrapping ErrorsTest exerciseNot started- Custom Error TypesTest exerciseNot started
- Panic vs ErrorCode exampleNot started
- Quiz: ErrorsQuizNot started
Loops
6 lessons

- The
forLoopTest exerciseNot started foraswhileTest exerciseNot started- Infinite Loops,
break, andcontinueTest exerciseNot started rangeover IntegersOutput exerciseNot started- Looping over Strings and RunesTest exerciseNot started
- Quiz: LoopsQuizNot started
Slices
6 lessons
- Arrays and SlicesTest exerciseNot started
make,len,cap, andappendTest exerciseNot started- Slicing: Cutting a SliceTest exerciseNot started
- Variadic Functions and the
...OperatorTest exerciseNot started - 2D Slices and the
slicesPackageTest exerciseNot started - Quiz: SlicesQuizNot started
Maps
6 lessons
- Getting to Know MapsTest exerciseNot started
- Checking Whether a Key Exists: Comma-okTest exerciseNot started
- Iterating over Maps and Key OrderOutput exerciseNot started
- Counting FrequenciesTest exerciseNot started
- Nested Maps and Maps of StructsTest exerciseNot started
- Quiz: MapsQuizNot started
Pointers
6 lessons
- Address and Dereference:
&and*Test exerciseNot started - Pass by Value vs Pass by PointerOutput exerciseNot started
- Pointer Receivers vs Value ReceiversTest exerciseNot started
- Nil PointersTest exerciseNot started
- When Should You Use Pointers?Code exampleNot started
- Quiz: PointersQuizNot started
Packages and Modules
6 lessons

- Packages and ImportsCode exampleNot started
- Exported vs UnexportedTest exerciseNot started
- Modules and the
goCommandReadingNot started - Standard Library:
stringsandstrconvTest exerciseNot started - Standard Library:
mathandsortTest exerciseNot started - Quiz: Packages and ModulesQuizNot started
Channels
6 lessons
- Goroutines and ChannelsTest exerciseNot started
- Buffered ChannelsTest exerciseNot started
- Close, Range, and Channel DirectionTest exerciseNot started
- SelectTest exerciseNot started
- WaitGroup and DeadlockTest exerciseNot started
- Quiz: ChannelsQuizNot started
Mutexes
6 lessons
- Race ConditionsCode exampleNot started
- sync.Mutex: Lock and UnlockTest exerciseNot started
- Protecting Structs with a MutexTest exerciseNot started
- sync.RWMutex: Many Readers, One WriterTest exerciseNot started
- sync.Once and Choosing Between a Mutex and a ChannelTest exerciseNot started
- Quiz: MutexesQuizNot started
Generics
6 lessons
- Generic FunctionsTest exerciseNot started
- The comparable ConstraintTest exerciseNot started
- Custom Constraints and cmp.OrderedTest exerciseNot started
- Generic TypesTest exerciseNot started
- When NOT to Use GenericsCode exampleNot started
- Quiz: GenericsQuizNot started
Enums
5 lessons
- Enums with const and iotaOutput exerciseNot started
- A String Method for EnumsTest exerciseNot started
- Validating Enum ValuesTest exerciseNot started
- Switching on EnumsTest exerciseNot started
- Quiz: EnumsQuizNot started
Projects and Final Review
4 lessons

- Go ProverbsQuizNot started
- Project: Mini Bank LedgerTest exerciseNot started
- Project: Warehouse InventoryTest exerciseNot started
- Final Quiz: Reviewing Every ChapterQuizNot started