Closed shirou closed 8 years ago
FYI: I have started porting python psutil(http://pythonhosted.org/psutil/) to golang.
https://github.com/shirou/gopsutil
Now it can get other information such as Disk_partitions on freebsd, linux and windows. see Current status in README. Please note this not need cgo.
Since this is very early stage, often become broken and API is not stable, but I appreciate if you try this.
Thank you.
LGTM. Thanks!
Implemented freebsd,amd64 by using syscall.RawSyscall6 which means no need cgo. Tested on FreeBSD 8.4. I think it could work on newer version.
Since I converted the kinfo_proc in sys/user.h to golang struct, it is easy to get other process information.