© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. FreemanPro Gohttps://doi.org/10.1007/978-1-4842-7355-5_20

20. Reading and Writing Data

Adam Freeman1  
(1)
London, UK
 
In this chapter, I describe two of the most important interfaces defined by the standard library: the Reader and Writer interfaces. These interfaces are used wherever data is read or written, which means that any source or destination for data can be treated in much the same way so that writing data to a file, for example, is just the same as writing data to a network connection. Table 20-1 puts the features described in this chapter in context.
Table 20-1

Putting Readers and Writers in Context

Question

Answer

What are they?

These interfaces define ...

Get Pro Go: The Complete Guide to Programming Reliable and Efficient Software Using Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.