1
0
Fork 0
mirror of https://github.com/vbatts/go-cgroup.git synced 2024-10-31 22:26:48 +00:00
go-cgroup/README.md

38 lines
510 B
Markdown
Raw Normal View History

2013-12-17 20:54:53 +00:00
go-cgroup
=========
Bindings to the libcgroup library
Installing
==========
go get github.com/vbatts/go-cgroup
2014-02-17 02:06:40 +00:00
on debian, you'll need packages: golang, libcgroup-dev
on fedora, you'll need packages: golang, libcgroup-devel
2013-12-17 20:54:53 +00:00
Sample
======
cgroup.Init()
fmt.Println(cgroup.GetSubSysMountPoint("cpu"))
ctls, err := cgroup.GetAllControllers()
if err != nil {
fmt.Println(err)
return
}
for i := range ctls {
fmt.Println(ctls[i])
}
Contributing
============
Fork and Pull Request please!