Go / Beginner · Free public pilot
Learn Go in 7 Days
Write your first program, work with records and finish with a tested reading log.
Start your first lesson →Start from zero. Take your own time.
The 30 lessons assume no previous programming experience. Allow about 60–90 minutes per day for reading and hands-on practice. Split a day across sessions if you need more time.
Run Go 1.27 in your browser with code-playpad’s experimental compiler. The first Run downloads about 21 MB and caches the toolchain. Enter console input before pressing Run.
Each day ends with independent practice. Day 7 includes a multi-file project, an optional Go project download and a review to try after a few days. Progress is saved in this browser.
Finished the reading log? Continue with Intermediate Go →
Day 1 · About 78 minutes
Write Your First Go Program
Run a program, name values and format a line of output.
- Hello, Go! 18 min · Read, predict and practice
- Name and Update Values 18 min · Read, predict and practice
- Format a Line 18 min · Read, predict and practice
- Checkpoint: Combine Two Sessions 24 min · Independent checkpoint
Day 2 · About 78 minutes
Make Decisions and Repeat Work
Use if and for to apply a rule and keep a running total.
- Choose a Branch 18 min · Read, predict and practice
- Repeat with for 18 min · Read, predict and practice
- Keep a Running Total 18 min · Read, predict and practice
- Checkpoint: Track a Daily Goal 24 min · Independent checkpoint
Day 3 · About 78 minutes
Write Functions and Use Slices
Pass values to functions and summarize a sequence of durations.
- Give a Calculation a Name 18 min · Read, predict and practice
- Keep Values in a Slice 18 min · Read, predict and practice
- Visit a Slice with range 18 min · Read, predict and practice
- Checkpoint: Summarize a Slice 24 min · Independent checkpoint
Day 4 · About 78 minutes
Model Records and Count by Key
Work with structs, slices of records and maps.
- Describe One Record 18 min · Read, predict and practice
- Collect Records 18 min · Read, predict and practice
- Count by Title 18 min · Read, predict and practice
- Checkpoint: Total Minutes by Title 24 min · Independent checkpoint
Day 5 · About 78 minutes
Read and Validate Input
Scan input lines, parse a number and respond to errors.
- Check a Returned Error 18 min · Read, predict and practice
- Split and Validate a Line 18 min · Read, predict and practice
- Read Lines from Standard Input 18 min · Read, predict and practice
- Checkpoint: Validate Input Lines 24 min · Independent checkpoint
Day 6 · About 78 minutes
Return Errors and Test Boundaries
Return a value with an error and write checks for accepted and rejected inputs.
- Return a Value or an Error 18 min · Read, predict and practice
- Check Expected Results 18 min · Read, predict and practice
- Describe Inputs and Expectations in a Table 18 min · Read, predict and practice
- Checkpoint: Protect the Total 24 min · Independent checkpoint
Day 7 · About 104 minutes
Build the Reading Log
Run, extend and test a multi-file program, then build an activity log independently.
- Run the Reading Log 18 min · Read, predict and practice
- Trace Input Through the Files 15 min · Read, predict and practice
- Check the Project Boundaries 16 min · Read, predict and practice
- Add a Reading Goal and Download the Project 20 min · Read, predict and practice
- On Your Own: An Activity Log 35 min · Independent checkpoint
- Come Back Later: Loops, Records and Errors 40 min · Extra delayed review