##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Repeat actions with Go's for loop
Welcome to loops
Go's only loop
Init, condition, post
Test your knowledge
When variable exists
Manual increments
Condition-only loops
Test your knowledge
Running forever
Exiting loops
Skipping iterations
Test your knowledge
Loops inside loops
Naming loops
Skipping outer iterations
Test your knowledge
Iterating collections
Ignoring values
Ignoring indices
Test your knowledge
Iterating characters
Iterating key-value pairs
Getting just keys
Test your knowledge
Decrementing loops
Skipping values
Parallel counters
Test your knowledge
Accumulating values
Searching for values
Selecting elements
Test your knowledge
Where variables live
Capturing loop variables
Proper capture
Test your knowledge
Changing collections
Reverse order
Exiting functions
Test your knowledge
Writing fast loops
Common mistakes
Boundary mistakes
Test your knowledge
Classic problem
Mathematical loops
Looking ahead
Key takeaways