go-ps

Find, list, and inspect processes from Go (golang).

  • 所有者: mitchellh/go-ps
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Process List Library for Go GoDoc

go-ps is a library for Go that implements OS-specific APIs to list and
manipulate processes in a platform-safe way. The library can find and
list processes on Linux, Mac OS X, Solaris, and Windows.

If you're new to Go, this library has a good amount of advanced Go educational
value as well. It uses some advanced features of Go: build tags, accessing
DLL methods for Windows, cgo for Darwin, etc.

How it works:

  • Darwin uses the sysctl syscall to retrieve the process table.
  • Unix uses the procfs at /proc to inspect the process tree.
  • Windows uses the Windows API, and methods such as
    CreateToolhelp32Snapshot to get a point-in-time snapshot of
    the process table.

Installation

Install using standard go get:

$ go get github.com/mitchellh/go-ps
...

TODO

Want to contribute? Here is a short TODO list of things that aren't
implemented for this library that would be nice:

  • FreeBSD support
  • Plan9 support

主要指标

概览
名称与所有者mitchellh/go-ps
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2014-04-06 23:40:00
推送于2022-11-20 06:29:31
最后一次提交2020-11-20 09:12:33
发布数1
最新版本名称v1.0.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数1.5k
关注者数28
派生数255
提交数44
已启用问题?
问题数27
打开的问题数21
拉请求数7
打开的拉请求数15
关闭的拉请求数13
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?