Package io
implements interfaces and helpers.
Regular file type is *os.File
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.
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.