Documentation ¶
Index ¶
- Variables
- func CacheDir() string
- func CleanSkipPaths(skipPaths []string) []string
- func ExtractPrintableBytes(content xio.ReadSeekerAt) ([]byte, error)
- func IsBinary(content xio.ReadSeekerAt, fileSize int64) (bool, error)
- func IsCommandAvailable(name string) bool
- func IsExecutable(fileInfo os.FileInfo) bool
- func IsGzip(f *bufio.Reader) bool
- func Keys(m map[string]struct{}) []string
- func SkipPath(path string, skipPaths []string) bool
- func StringInSlice(a string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PathSeparator = fmt.Sprintf("%c", os.PathSeparator)
)
Functions ¶
func CleanSkipPaths ¶ added in v0.56.0
func ExtractPrintableBytes ¶ added in v0.56.0
func ExtractPrintableBytes(content xio.ReadSeekerAt) ([]byte, error)
func IsBinary ¶ added in v0.33.0
func IsBinary(content xio.ReadSeekerAt, fileSize int64) (bool, error)
func IsCommandAvailable ¶
func IsExecutable ¶ added in v0.31.0
func StringInSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.