Chapter 10. Data IO in Go
Previous chapters of this book focused mainly on fundamentals. In this and future chapters, readers are introduced to some of the powerful APIs provided by Go's standard library. This chapter discusses in detail how to input, process, transform, and output data using APIs from the standard library and their respective packages with the following topics:
IO with readers and writers
The io.Reader interface
The io.Writer interface
Working with the io package
Working with files
Formatted IO with fmt
Buffered IO
In-memory IO
Encoding and decoding data