systemutils

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindBackgroundProcess

func FindBackgroundProcess(
	executableName string,
	foregroundProcessPID int,
) (ps.Process, error)

func KillBackgroundProcess

func KillBackgroundProcess(
	executableName string,
	foregroundProcessPID int,
) error

func StartBackgroundProcess

func StartBackgroundProcess(
	executableName string,
	arguments []string,
	stderrWriter io.Writer,
	stderrEndMark string,
) error

func UnmarshalJSONFile

func UnmarshalJSONFile(filePath string, data interface{}) error

Types

type ExecutableInfo

type ExecutableInfo struct {
	Path string
	Name string
}

func ExecutableOfForegroundProcess

func ExecutableOfForegroundProcess() (ExecutableInfo, error)

Jump to

Keyboard shortcuts

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