utils

package
v0.0.0-...-82b092a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func CacheDir

func CacheDir() string

func IsBinary

func IsBinary(content dio.ReadSeekerAt, fileSize int64) (bool, error)

func IsCommandAvailable

func IsCommandAvailable(name string) bool

func IsExecutable

func IsExecutable(fileInfo os.FileInfo) bool

func IsGzip

func IsGzip(f *bufio.Reader) bool

func Keys

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

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