Learning path

Everyday Go toolkit

defer, panic and recover, closures, JSON, sorting, and runes and bytes.

6 lessons · 9 challenges

  1. Lesson 1 challenge Defer, Panic and Recover Run cleanup code with defer and turn a panic back into an error with recover.
  2. Lesson 2 challenges Closures and Function Values Store functions in variables, pass them around and capture variables.
  3. Lesson 2 challenges JSON Encoding and Decoding Convert structs to JSON and back with encoding/json and struct tags.
  4. Lesson 1 challenge Sorting Slices Sort numbers, strings and structs with the sort and slices packages.
  5. Lesson 2 challenges Runes, Bytes and strings.Builder Handle Unicode text correctly and build long strings efficiently.
  6. Lesson 1 challenge Anagram Check Test whether two texts use exactly the same letters.