Go Package io: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 13: Line 13:


=<tt>Reader</tt>=
=<tt>Reader</tt>=
 
{{External|https://golang.org/pkg/io/#Reader}}
* https://golang.org/pkg/io/#Reader
An interface that exposes <code>Read()</code>.


=<tt>Writer</tt>=
=<tt>Writer</tt>=

Revision as of 18:39, 16 October 2023

External

Internal

Overview

The io package consists of a few functions, but mostly interfaces used by other packages.

Reader

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

An interface that exposes Read().

Writer


ReadCloser

An interface that exposes basic Read() and Close() methods. The http.Request body is a ReadCloser. See Reader.