files

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllFiles

func GetAllFiles(dirPath string, filter Filter) (files []string, err error)

GetAllFiles get all files under path dirPath

func IsExist

func IsExist(path string) bool

IsExist returns a boolean indicating whether the error is known to report that a file or directory already exists. It is satisfied by ErrExist as well as some syscall errors.

func ReadLines

func ReadLines(filePath string) (<-chan string, error)

ReadLines returns a channel that could received file content by lines

Types

type Filter

type Filter func(string) bool

Filter a file filter by filename

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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