Chapter 4

The standard library

Real programs with nothing but what ships with Go.

~80 min total6 lessonsAssignment

By the end of this chapter you'll be able to

  • Reading a whole file
  • Streaming line by line
  • os.Open against os.Create
  • Buffer your writes
  • io.Copy, and the pattern it enables

Chapter assignment

Finish every assignment in The standard library

Each lesson in this part ends with its own assignment, named for the leaderboard. Finish them in order.

See success criteria

Lesson 1 takes ~15 min.

Start chapter

Spot a typo? Have an idea?

Help us improve this chapter. One click opens a GitHub issue with this chapter's URL pre-filled — suggest a clearer wording, report a bug, or request a new lesson. The course keeps improving thanks to learners like you.

Suggest an improvement on GitHub