utils

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

CacheDir :

func Exec

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

Exec :

func Exists

func Exists(path string) (bool, error)

Exists :

func FileNameWithoutExtension

func FileNameWithoutExtension(path string) string

FileNameWithoutExtension :

func FileWalk

func FileWalk(root string, walkFn func(r io.Reader, path string) error) error

FileWalk :

func GenWorkers

func GenWorkers(num int) chan<- func()

GenWorkers :

func GetDefaultLogDir

func GetDefaultLogDir() string

GetDefaultLogDir :

func SetLogger

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

SetLogger :

Types

This section is empty.

Jump to

Keyboard shortcuts

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