utils

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PathSeparator = fmt.Sprintf("%c", os.PathSeparator)
)

Functions

func CacheDir

func CacheDir() string

func CleanSkipPaths added in v0.56.0

func CleanSkipPaths(skipPaths []string) []string

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 IsCommandAvailable(name string) bool

func IsExecutable added in v0.31.0

func IsExecutable(fileInfo os.FileInfo) bool

func IsGzip

func IsGzip(f *bufio.Reader) bool

func Keys

func Keys(m map[string]struct{}) []string

func SkipPath added in v0.56.0

func SkipPath(path string, skipPaths []string) bool

func StringInSlice

func StringInSlice(a string, list []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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