Go Package io: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 23: Line 23:
=<tt>ReadCloser</tt>=
=<tt>ReadCloser</tt>=


An interface that exposes basic <code>Read()</code> and <code>Close()</code> methods. The <code>http.Request</code> body is a <code>ReadCloser</code>.
An interface that exposes basic <code>Read()</code> and <code>Close()</code> methods. The <code>http.Request</code> body is a <code>ReadCloser</code>. See <code>[[#Reader|Reader]]</code>.


=<tt>Reader</tt>=
=<tt>Reader</tt>=


An interface that exposes <code>Read()</code>.
An interface that exposes <code>Read()</code>.

Revision as of 18:38, 16 October 2023

External

Internal

Overview

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

Reader

Writer


ReadCloser

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

Reader

An interface that exposes Read().