tools

package
v0.0.0-...-ba43c62 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OS_Linux   = "linux"
	OS_Windows = "windows"
	OS_MacOS   = "darwin"
)

Variables

View Source
var (
	ERR_NOT_OWNER         = errors.New("File not owned by current user")
	ERR_NOT_EXEC_CUR_USER = errors.New("File not executable by current user")
)

Functions

func Appendfilebeg

func Appendfilebeg(file string, line string)

func CommandExists

func CommandExists(cmd string) bool

func Exec_SH

func Exec_SH(path string, args ...string) error

func FileExecutable

func FileExecutable(path string) error

func IsExecAll

func IsExecAll(mode os.FileMode) bool

func IsExecAny

func IsExecAny(mode os.FileMode) bool

func IsExecGroup

func IsExecGroup(mode os.FileMode) bool

func IsExecOther

func IsExecOther(mode os.FileMode) bool

func IsExecOwner

func IsExecOwner(mode os.FileMode) bool

func OS_EQ

func OS_EQ(name string) bool

func OS_NEQ

func OS_NEQ(name string) bool

func Reload

func Reload() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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