util

package
v0.0.0-...-354b61f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

func Exec

func Exec(command string, args []string) (string, error)

func Exists

func Exists(path string) (bool, error)

func FetchURL

func FetchURL(url string) ([]byte, error)

func FileWalk

func FileWalk(root string, targetFiles map[string]struct{}, walkFn func(r io.Reader, path string) error) error

func FilterTargets

func FilterTargets(prefixPath string, targets map[string]struct{}) (map[string]struct{}, error)

func GetDefaultLogDir

func GetDefaultLogDir() string

func IsCommandAvailable

func IsCommandAvailable(name string) bool

func SetLogger

func SetLogger(logToFile bool, logDir string, debug, logJSON bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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