From def436e02bdd9b16d0542dd0510c869a09871760 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 17 Dec 2013 15:54:53 -0500 Subject: [PATCH] add readme --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a961f38 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +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! +