Updated sample in documentation

This commit is contained in:
Frank Scholten 2016-02-19 16:07:11 +01:00
parent 4c1b10f991
commit ebdd7269fd
1 changed files with 18 additions and 10 deletions

View File

@ -16,7 +16,13 @@ on fedora, you'll need packages: golang, libcgroup-devel
Sample
======
```
package main
import "github.com/vbatts/go-cgroup"
import "fmt"
func main() {
cgroup.Init()
fmt.Println(cgroup.GetSubSysMountPoint("cpu"))
@ -30,6 +36,8 @@ Sample
fmt.Println(ctls[i])
}
}
```
Contributing
============