utils

package
v1.0.57 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v1.0.38

func Contains(slice *[]string, str *string) bool

func ExecProcess

func ExecProcess(bash_command string, arguments ...string) (result string)

func ExecProcessAndGetOutputLines

func ExecProcessAndGetOutputLines(bash_command string, arguments ...string) (lines []string)

func ExecProcessWithTimeout

func ExecProcessWithTimeout(timeout_duration time.Duration, bash_command string, arguments ...string) (result string)

https://github.com/dohzya/timeout/blob/master/main.go

func ExecProcessWithTimeoutAndGetOutputLines

func ExecProcessWithTimeoutAndGetOutputLines(timeout_duration time.Duration, bash_command string, arguments ...string) (lines []string)

func PrettyPrint added in v1.0.35

func PrettyPrint(input interface{})

func RemoveEmpties

func RemoveEmpties(list []string) (result []string)

func Sha256 added in v1.0.45

func Sha256(x_input string) (result string)

func WriteJSON

func WriteJSON(filePath string, data interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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