Documentation ¶
Index ¶
- Variables
- func Confirm(message string) bool
- func ContainsString(s []string, e string) bool
- func DeleteAllFiles(files []string)
- func DeleteFile(path string) error
- func GetDuplicateFiles(AllFiles []string, uniqueFiles []string) []string
- func GetFileName(path string) string
- func GetFiles(path string) ([]string, error)
- func GetUniqueFiles(hashMap map[string]string, hash []string) []string
- func IsDir(path string) (bool, error)
- func IsValidPath(path string) (bool, error)
- func ListDir(path string) ([]fs.FileInfo, error)
- func PrintFiles(filePaths []string)
- func Sha256sum(filename string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AppName is the name of the application AppName = "go-dupfinder" // Version is the version of the application Version = "dev" // CommitHash is the last commit hash when the application is built CommitHash = "none" // BuildDate is the date when the application is built BuildDate = "unknown" )
Functions ¶
func ContainsString ¶
ContainsString check if string exists in array of string
func DeleteAllFiles ¶
func DeleteAllFiles(files []string)
DeleteAllFiles will delete all files in array
func GetDuplicateFiles ¶
GetDuplicateFiles return duplicate files
func GetFileName ¶
GetFileName will return the file name from a directory path
func GetUniqueFiles ¶
GetUniqueFiles return unique files
func IsValidPath ¶
IsValidPath check if the path is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.