1
0
Fork 0
mirror of https://github.com/vbatts/go-cgroup.git synced 2024-11-27 02:45:39 +00:00
golang bindings for libcgroup
Find a file
2013-12-17 17:09:17 -05:00
cg.go more progress 2013-12-17 17:03:55 -05:00
main.go adding a 'main' test file. 2013-12-17 17:09:17 -05:00
README.md add readme 2013-12-17 15:54:53 -05:00

go-cgroup

Bindings to the libcgroup library

Installing

go get github.com/vbatts/go-cgroup

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!