Documentation ¶
Index ¶
- Constants
- func DeleteFile(filePath string) error
- func GetFileInfo(filePath string) (os.FileInfo, error)
- func GzipDecompressFile(filePath, outputPath string) error
- func GzipFile(filePath, outputPath string) error
- func ReadFileBytes(filePath string) ([]byte, error)
- type File
- type ScanResult
- type Scanner
Constants ¶
View Source
const GZExtension = ".gz"
GZExtension - gz extension
Variables ¶
This section is empty.
Functions ¶
func GetFileInfo ¶
GetFileInfo - returns the file info
func GzipDecompressFile ¶
GzipDecompressFile - ungzips a file
func ReadFileBytes ¶
ReadFileBytes - read all specified file bytes
Types ¶
type ScanResult ¶
ScanResult - has all files and errors found when traversing the files in root directory
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner - Scans a directory and find files using regular expression
func NewScanner ¶
NewScanner - builds a new Scanner
Click to show internal directories.
Click to hide internal directories.