io.Reader and io.Writer are the universal streaming interfaces, so files, network connections, buffers and compressors all compose. os opens files, bufio buffers them, and io.Copy moves data without loading everything into memory.
← Go theorytheory 0/50 · 0%
Standard library · easy
17. Files and io Interfaces
Reader and Writer everywhere.
Check your understanding
1. Which pair of interfaces underpins Go streaming?
2. io.Copy is useful because it…