readuntil

package
v0.0.0-...-19f838f Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: MIT Imports: 4 Imported by: 0

README

readuntil

advance an io.Reader until a []byte pattern is found. Analagous to bytes.Index

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(r io.Reader, pat []byte) (int, error)

Index will read the io.Reader until it finds the first instance of pattern and return the number of bytes read. If the patter was not found it will return io.EOF. If the reader is a readseeker then it will seek to that position.

Types

This section is empty.

Jump to

Keyboard shortcuts

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