Skip to content

Glossary: Go Beyond the Basics

strings.NewReader

Makes an `io.Reader` from a string, useful for giving a test request a body.

Where the book teaches it

Related terms

io.Readerhttptest