scanner

package
v0.102.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBufferSize = 16 * 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

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

Scanner is a scanner that maintains position

func New

func New(r io.Reader, maxLogSize int, bufferSize int, startOffset int64, splitFunc bufio.SplitFunc) *Scanner

New creates a new positional scanner

func (*Scanner) Error

func (s *Scanner) Error() error

func (*Scanner) Pos

func (s *Scanner) Pos() int64

Pos returns the current position of the scanner

Jump to

Keyboard shortcuts

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