file

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFileByDlim

func ReadFileByDlim(filePath string, delim byte, ch chan<- Line) error

use this api for reading large size file read the file by delimiter write line to the the given channel end of file signal is written into channel by setting error to EOF error

func RemoveFile added in v0.1.0

func RemoveFile(filePath string) error

func UnzipFile added in v0.1.1

func UnzipFile(fileName string) (string, error)

unzip the .gz file

Types

type Line added in v0.0.5

type Line struct {
	Line string
	Err  error
}

Jump to

Keyboard shortcuts

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