mirror of
https://github.com/vbatts/go-cgroup.git
synced 2025-01-15 02:00:08 +00:00
add readme
This commit is contained in:
parent
eec1be6a82
commit
def436e02b
1 changed files with 34 additions and 0 deletions
34
README.md
Normal file
34
README.md
Normal file
|
@ -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!
|
||||
|
Loading…
Reference in a new issue