Skip to content

Glossary: Go Beyond the Basics

io.Discard

An `io.Writer` that throws away everything written to it, used to silence logs in tests.

Where the book teaches it

Related terms

io.Writer