Documentation ¶
Index ¶
- func CheckDefaultIgnore(path string, info os.FileInfo, isVCS bool) bool
- func CheckMD5Sum(path string, fileCache *syncmap.SyncMap[string, struct{}]) bool
- func CheckOptionMatch(path string, info os.FileInfo, opts *option.GClocOptions) bool
- func CloneGitRepo(repoURL string) (string, error)
- func ContainComment(line string, multipleLines [][]string) bool
- func FileExits(path string) bool
- func IsGitURL(path string) bool
- func IsVCSDir(path string) bool
- func MD5Sum(path string) ([16]byte, error)
- func NextRune(str string) rune
- func TrimBOM(line string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDefaultIgnore ¶
CheckDefaultIgnore returns true if the path should be ignored.
func CheckMD5Sum ¶
CheckMD5Sum checks if the file's MD5 sum is in the cache.
func CheckOptionMatch ¶
CheckOptionMatch returns true if the path matches the options.
func CloneGitRepo ¶ added in v1.0.4
CloneGitRepo clones the git repository.
func ContainComment ¶
ContainComment returns true if the line contains a comment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.