Registry / utility / mitchellh-go-ps

mitchellh-go-ps

JSON →
library1.0.0gogounverified

ps provides an API for finding and listing processes in a platform-agnostic way.

go get github.com/mitchellh/go-ps
INSTALL
IMPORT
SIG · MITCHELLH-GO-PS
M
mitchellh-go-ps
utilitygov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ps
github.com/mitchellh/go-ps

Lists all running processes and prints their PID and executable name.

package main import ( "fmt" "github.com/mitchellh/go-ps" ) func main() { processes, err := ps.Processes() if err != nil { panic(err) } for _, p := range processes { fmt.Printf("PID: %d, Name: %s\n", p.Pid(), p.Executable()) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
mitchellh-go-ps — go get mitchellh-go-ps · libregistry