reader

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeekReader

type PeekReader struct {
	Reader *bufio.Reader
	// contains filtered or unexported fields
}

func NewPeekReader

func NewPeekReader(r *bufio.Reader) *PeekReader

func (*PeekReader) Continue

func (p *PeekReader) Continue()

Continue allows the PeekReader to continue reading from the underlying reader, it will continue after any data previously peeked.

Calling this method multiple times is safe and has no additional effect.

func (*PeekReader) Peek

func (p *PeekReader) Peek(n int) (bytes []byte, err error)

func (*PeekReader) PeekBytes

func (p *PeekReader) PeekBytes(r byte) (bytes []byte, err error)

func (*PeekReader) ReadBytes

func (p *PeekReader) ReadBytes(r byte) (bytes []byte, err error)

Jump to

Keyboard shortcuts

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