osutil

package
v0.0.0-...-b1457f6 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CheckMark = "\u2713"
	CrossMark = "\u274c"
)

Variables

This section is empty.

Functions

func BinExists

func BinExists(binname string) bool

BinExists checks binary name in the user's PATH

func CheckAndMakeDir

func CheckAndMakeDir(path string) error

func Exists

func Exists(path string) (bool, error)

Exists returns whether the given file or directory exists or not.

func ExtractTarGz

func ExtractTarGz(gzipStream io.Reader) error

func PrintBinaryPath

func PrintBinaryPath(binname string) (string, error)

PrintBinaryPath prints binary location in the user's PATH

func RunUnixCmd

func RunUnixCmd(displayOutput bool, cmdName string, flags ...string) (*string, error)

blanket implementation for Unices / *nix-like OSes

Types

This section is empty.

Jump to

Keyboard shortcuts

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