Skip to content

Streamfile function #19

@kastolars

Description

@kastolars

A function that takes an int n and a reader io.Reader. It will Read into a byte slice of size n and return the string read into it and an error. If Read returns io.EOF, return that error.

Similar implementation here:
https://gist.githubusercontent.com/vladimirvivien/d4bd2034037c1f057504398bf626f0c0/raw/032033cba03bd251b174b888147bebf33e3c30d3/simple_reader.go

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions