utilities

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(path string, text bytes.Buffer)

func Basename

func Basename(command string) (string, error)

func Contains

func Contains(s []string, str string) bool

func Crontab

func Crontab(path string, files *[]string)

func CrontabDirectory

func CrontabDirectory(directoryPath string, files *[]string)

func Exists

func Exists(path string) bool

func IterateOverDir

func IterateOverDir(path string) chan string

func IterateOverDirN

func IterateOverDirN(path string, depth int) chan string

func IterateOverPath

func IterateOverPath() []string

func ListPrint

func ListPrint(title string, list []string) string

func LocalParameters

func LocalParameters() string

func Parameters

func Parameters() string

func RandString

func RandString(length int) string

func Read

func Read(path string) string

func Shell

func Shell(path string, files *[]string)

func ShellDirectory

func ShellDirectory(directoryPath string, files *[]string)

func Which

func Which(command string) []string

func Whoami

func Whoami() *structs.Whoami

func WhoamiString

func WhoamiString(whoami *structs.Whoami) string

func Write

func Write(path string, text bytes.Buffer)

func WriteJSON

func WriteJSON(path string, report *structs.JSONReport)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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