readutil

package
v0.0.0-...-2ee2aa9 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package readutil contains helper methods to simplify reading operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadTo

func ReadTo(b []byte, to byte) []byte

ReadTo reads from b until to is seen and returns the bytes between the start and to, exclusive of to. Returns nil if it's not found

Types

type BufferedReader

type BufferedReader interface {
	Discard(n int) (discarded int, err error)
	Read(p []byte) (n int, err error)
}

BufferedReader is an interface that represents a reader with an internal buffer.

Jump to

Keyboard shortcuts

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