Categorygithub.com/mattetti/filebuffer
modulepackage
1.0.1
Repository: https://github.com/mattetti/filebuffer.git
Documentation: pkg.go.dev

# README

filebuffer

filebuffer is a package implementing a few file-like interfaces such as io.Reader, io.ReaderAt, io.Seeker and more. The implementation is backed by a byte buffer and the main purpose is to have in-memory alternative to using an io.File.

More information can be found on the GoDoc page.

GoDoc

Build Status

# Functions

New returns a new populated Buffer.
NewFromReader is a convenience method that returns a new populated Buffer whose contents are sourced from a supplied reader by loading it entirely into memory.

# Structs

Buffer implements interfaces implemented by files.