Reading and Writing
This lesson introduces a package provided by Golang, that has implemented interfaces for reading and writing the information.
We'll cover the following...
Introduction
Reading and writing are universal activities in software: reading and writing files comes to mind first, whereas reading and writing to buffers (e.g., to slices of bytes or to strings), and to the standard input, output, and error streams, network connections, pipes, and so on (or to our custom types) comes second. To make the codebase as generic as possible, Go takes a consistent approach to reading and writing data.
The package io
provides us with the interfaces for reading and writing, io.Reader
and ...