fread

package module
v0.0.0-...-c976b18 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 11 Imported by: 1

README

Deprecated!!!

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ZipSelector = ZipMaxSizeSelector

	ErrZipNotFileContains = errors.New(`fread: zip does not contains files`)
)
View Source
var (
	XmlSplit        = []byte(`</`)
	SpaceAnySplit   = []byte(" \n\r\t")
	SpecialAnySplit = []byte("`~!@#$%^&+=[]{};'\"\\|,<>/?№() \n\r\t")
)

Functions

func ChunkSplit

func ChunkSplit(filePath string, split []byte, output chan []byte) error

func ChunkSplitAny

func ChunkSplitAny(filePath string, split []byte, output chan []byte) error
func Head(file *os.File, size int) ([]byte, error)

func Lines

func Lines(filePath string, output chan []byte) error

func NewReader

func NewReader(filePath string) (io.ReadCloser, error)

func ReadJson

func ReadJson(path string, i interface{}) error

func ScanSplit

func ScanSplit(split []byte) bufio.SplitFunc

func ScanSplitAny

func ScanSplitAny(split []byte) bufio.SplitFunc

func ScanSplitNotAny

func ScanSplitNotAny(split []byte) bufio.SplitFunc

func ZipMaxSizeSelector

func ZipMaxSizeSelector(zipFile *zip.Reader) (io.ReadCloser, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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