scanner

package
v0.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoNotSplitScanner

type DoNotSplitScanner struct {
	// contains filtered or unexported fields
}

func NewDoNotSplitScanner

func NewDoNotSplitScanner(data []byte) *DoNotSplitScanner

func (*DoNotSplitScanner) Err

func (s *DoNotSplitScanner) Err() error

func (*DoNotSplitScanner) Event

func (s *DoNotSplitScanner) Event() ([]byte, error)

func (*DoNotSplitScanner) Scan

func (s *DoNotSplitScanner) Scan() bool

type Event

type Event struct {
	// contains filtered or unexported fields
}

func EventCopyFromBytes

func EventCopyFromBytes(data []byte, err error) *Event

type EventScanner

type EventScanner interface {
	Scan() bool
	Event() ([]byte, error)
	Err() error
}

func NewScanner

func NewScanner(lineSplitter abstract.LfLineSplitter, data []byte) (EventScanner, error)

type LineBreakScanner

type LineBreakScanner struct {
	// contains filtered or unexported fields
}

func NewLineBreakScanner

func NewLineBreakScanner(data []byte) *LineBreakScanner

func (*LineBreakScanner) Err

func (s *LineBreakScanner) Err() error

func (*LineBreakScanner) Event

func (s *LineBreakScanner) Event() ([]byte, error)

func (*LineBreakScanner) Scan

func (s *LineBreakScanner) Scan() bool

func (*LineBreakScanner) ScanAll

func (s *LineBreakScanner) ScanAll() ([]string, error)

type ProtoseqScanner

type ProtoseqScanner struct {
	// contains filtered or unexported fields
}

func NewProtoseqScanner

func NewProtoseqScanner(data []byte) *ProtoseqScanner

func (*ProtoseqScanner) Err

func (s *ProtoseqScanner) Err() error

func (*ProtoseqScanner) Event

func (s *ProtoseqScanner) Event() ([]byte, error)

func (*ProtoseqScanner) Scan

func (s *ProtoseqScanner) Scan() bool

Jump to

Keyboard shortcuts

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