Skip to content

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.

  1. Hello, Go! 18 min · Read, predict and practice
  2. Name and Update Values 18 min · Read, predict and practice
  3. Format a Line 18 min · Read, predict and practice
  4. 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.

  1. Choose a Branch 18 min · Read, predict and practice
  2. Repeat with for 18 min · Read, predict and practice
  3. Keep a Running Total 18 min · Read, predict and practice
  4. 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.

  1. Give a Calculation a Name 18 min · Read, predict and practice
  2. Keep Values in a Slice 18 min · Read, predict and practice
  3. Visit a Slice with range 18 min · Read, predict and practice
  4. 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.

  1. Describe One Record 18 min · Read, predict and practice
  2. Collect Records 18 min · Read, predict and practice
  3. Count by Title 18 min · Read, predict and practice
  4. 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.

  1. Check a Returned Error 18 min · Read, predict and practice
  2. Split and Validate a Line 18 min · Read, predict and practice
  3. Read Lines from Standard Input 18 min · Read, predict and practice
  4. 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.

  1. Return a Value or an Error 18 min · Read, predict and practice
  2. Check Expected Results 18 min · Read, predict and practice
  3. Describe Inputs and Expectations in a Table 18 min · Read, predict and practice
  4. 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.

  1. Run the Reading Log 18 min · Read, predict and practice
  2. Trace Input Through the Files 15 min · Read, predict and practice
  3. Check the Project Boundaries 16 min · Read, predict and practice
  4. Add a Reading Goal and Download the Project 20 min · Read, predict and practice
  5. On Your Own: An Activity Log 35 min · Independent checkpoint
  6. Come Back Later: Loops, Records and Errors 40 min · Extra delayed review