util

package
v0.0.0-...-0ffce00 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProcLocation is the default location for the proc folder
	ProcLocation = "/proc"
)

Variables

This section is empty.

Functions

func CreateProcPath

func CreateProcPath(args ...string) string

CreateProcPath returns a proc location build from the arguments passed

func ErrorCheck

func ErrorCheck(err error)

ErrorCheck will print and exit if the error passed is not empty

func GetSudoOrDie

func GetSudoOrDie() *exec.Cmd

func IsRoot

func IsRoot() bool

func TransformSize

func TransformSize(n uint64) string

TransformSize takes bytes in int64 format and returns it in a human readable format

Types

This section is empty.

Directories

Path Synopsis
ip

Jump to

Keyboard shortcuts

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