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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?