reader

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EolNl = iota
	EolCr
	EolCrNl
	EolCustom
)

Variables

View Source
var (
	ErrBufferFull    = errors.New("reader: buffer full")
	ErrNegativeCount = errors.New("reader: negative count")
)

Functions

This section is empty.

Types

type CsvReader

type CsvReader struct {
	ReaderBase
	EolType int
	Escape  byte
	Quote   byte
}

func NewCsvReader

func NewCsvReader(rd io.Reader, size int, escape byte, quote byte, eolType int) *CsvReader

type CustomReader

type CustomReader struct {
	ReaderBase
	// contains filtered or unexported fields
}

func NewCustomReader

func NewCustomReader(rd io.Reader, size int, lineDelimiter string) *CustomReader

type Reader

type Reader interface {
	Read() ([]byte, error)
	Count() int
}

type ReaderBase

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

func (*ReaderBase) Count

func (b *ReaderBase) Count() int

func (*ReaderBase) Read

func (b *ReaderBase) Read() ([]byte, error)

type TextReader

type TextReader struct {
	ReaderBase
	EolType int
}

func NewTextReader

func NewTextReader(rd io.Reader, size int, eolType int) *TextReader

type VirtualMethod

type VirtualMethod interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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