Documentation
¶
Index ¶
- func CommandExists(cmd string) bool
- func Contains(slice []string, item string) bool
- func FormatFileSize(size int64) string
- func FormatFileSizeColored(size int64) string
- func GetFileIcon(name string) string
- func HighlightMatches(text string, matches []int) string
- func IsBinaryFile(path string) bool
- func IsCodeFile(name string) bool
- func IsImageFile(name string) bool
- func Min(a, b int) int
- func ShouldIgnore(name string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandExists ¶
CommandExists checks if a command is available in PATH
func FormatFileSize ¶
FormatFileSize formats a file size in bytes to a human-readable string
func FormatFileSizeColored ¶
FormatFileSizeColored returns a color-styled file size string based on size ranges
func GetFileIcon ¶
GetFileIcon returns an emoji icon for a file based on its extension
func HighlightMatches ¶
HighlightMatches highlights matched characters in a string
func IsBinaryFile ¶
IsBinaryFile returns true if the file is likely binary based on extension
func IsCodeFile ¶
IsCodeFile returns true if the file is a code file based on extension
func IsImageFile ¶
IsImageFile returns true if the file is an image based on extension
func ShouldIgnore ¶
ShouldIgnore returns true if a file/directory should be ignored
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.