filer

package
v0.0.0-...-1b1a4f8 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendStringToFile

func AppendStringToFile(filePath, rawString string) error

func CollectNestedFilesPath

func CollectNestedFilesPath(extension, parentPath string) ([]string, error)

func CreateNestedFolders

func CreateNestedFolders(sourcePath string, destNestedFolders ...string) (string, error)

func EditFile

func EditFile(filePath string, f func(line string) string) error

func ExtractFileExtension

func ExtractFileExtension(fullName string) string

func ExtractFileName

func ExtractFileName(filePath string) string

func ExtractGoModuleName

func ExtractGoModuleName(workDirPath string) (string, error)

func FormatGoFile

func FormatGoFile(filePath string) error

func IsExistedDirectory

func IsExistedDirectory(dirPath string) bool

func IsExistedFile

func IsExistedFile(filePath string) bool

func IsExistedPattern

func IsExistedPattern(fileDirPath, fileNamePattern string) bool

func ScanFileWithBreak

func ScanFileWithBreak(filePath string, f func(line string) bool) error

func ScanLines

func ScanLines(r io.Reader, f func(line string) error) error

func ScanLinesWithBreak

func ScanLinesWithBreak(r io.Reader, f func(line string) bool) error

func WorkDirPath

func WorkDirPath() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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