2026-spring go-apis/lessons/06-testing-handlers/exercises.md

6 lines431 B

Exercises: lesson 6

  1. Look up one function or command the example uses in the official documentation. Note one option you didn't know.
  2. Add a comment above each block explaining what it does, in your own words.
  3. Break the example on purpose: delete a bracket or misspell a name. Read the error message. Which line does it point to?
  4. Add a check that prints a warning when a result looks wrong (negative, empty, too big).