process

package
v1.0.58 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	ProcessID int
	ExeName   string
	CmdLine   string
	// Envs only contains the environment variables that we are interested in
	Envs map[string]string
}

func FindAllProcesses

func FindAllProcesses(predicate func(string) bool) ([]Details, error)

Find all processes in the system. The function accepts a predicate function that can be used to filter the results.

func GetPidDetails added in v1.0.37

func GetPidDetails(pid int) Details

Jump to

Keyboard shortcuts

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