2026-spring go-apis/lessons/03-json-in-and-out

README.md

Lesson 3: JSON in and out

This lesson covers jSON in and out. You'll read a short explanation, try three small exercises and finish with a quiz.

Full lesson: https://glibcode.net/courses/go-apis/lessons/3

Files

  • main.go: encoding and decoding JSON

Tip: Run gofmt -w . before committing; nobody argues about formatting in Go.

Tip: go vet ./... catches mistakes the compiler allows.

Run it

go run ./lessons/03-json-in-and-out

Exercises

See exercises.md. Ask in the forum once you've tried.