stream

package
v0.0.0-...-3deae0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error) io.Reader

func NewCloser

func NewCloser(r io.Reader, c io.Closer) io.ReadCloser

func Peek

func Peek(r io.Reader, n int64) ([]byte, io.Reader)

Peek n bytes from the reader, you could use bufio.NewReader to peek sa well

func PeekCloser

func PeekCloser(rc io.ReadCloser, n int64) ([]byte, io.ReadCloser)

PeekCloser is a io.ReadCloser that peeks n bytes from the reader

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL