/ps

List, find and inspect operating system processes in Go

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

ps

Go Reference GitHub Action Status

Package ps provides functionality to find, list and inspect operating system processes, without using cgo or external binaries.

Supported operating systems: Linux, macOS, FreeBSD, NetBSD, OpenBSD, DragonflyBSD, Solaris/Illumos, Windows

Not all process information may be supported on all platforms. See the Go package reference for details.

This package is inspired by the github.com/mitchellh/go-ps and github.com/keybase/go-ps packages (the latter being a fork of the former). However, this package supports more operating systems, provides extended process information and uses only functionality from the Go standard libary and the golang.org/x/sys/unix and golang.org/x/sys/windows packages to retrieve information from the operating system, i.e. without using cgo or shelling out to external programs.