Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.16 KB

10-IO.md

File metadata and controls

40 lines (26 loc) · 1.16 KB

IO

Package io implements interfaces and helpers.

Files

Regular file type is *os.File

Interfaces

More of theses at https://go-proverbs.github.io/

Exemplified in package io: Generic I/O with io.Reader and io.Writer and a few other interfaces.

https://golang.org/pkg/io/

R W C S
io.Reader x
io.Writer x
io.Closer x
io.Seeker x
io.ReadWriter x x
io.ReadCloser x x
io.ReadSeeker x x
io.WriteCloser x x
io.WriteSeeker x x
io.ReadWriteCloser x x x
io.ReadWriteSeeker x x x

Libraries might implement missing pieces, e.g.

From: github.com/go4org/go4.