Lernpfad

Go-Werkzeuge für den Alltag

defer, panic und recover, Closures, JSON, Sortieren sowie Runes und Bytes.

6 Lektionen · 9 Challenges

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