goo_file

package
v1.1.112 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare added in v1.1.49

func Compare(srcFile, targetFile, appendFile, reduceFile string) (err error)

文件内容对比,输出增加的、减少的内容 文件内容要先做好排序

func Exist

func Exist(filename string) bool

func FileMerge

func FileMerge(file string, files []string) (err error)

func FileSort

func FileSort(filename, sortedFile string) (err error)

func FileSplit added in v1.1.50

func FileSplit(filename string, maxLine int) (files []string, err error)

func ReadByLine

func ReadByLine(filename string, cb func(b []byte, end bool) error) error

Types

type FileLock

type FileLock struct {
	Filename string
	// contains filtered or unexported fields
}

func (*FileLock) Lock

func (fl *FileLock) Lock() (err error)

func (*FileLock) UnLock

func (fl *FileLock) UnLock() (err error)

Jump to

Keyboard shortcuts

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