Go package for accessing the /proc virtual filesystem
Go
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
limits
stat
statm
status
testfiles
util
.gitignore
LICENSE
README.md
meminfo.go
meminfo_test.go
process.go
process_test.go
procfs.go
procfs_test.go

README.md

Procfs

Procfs is a parser for the /proc virtual filesystem on Linux written in the Go programming lanugage.

Not all /proc interfaces are currently supported; but pull requests are welcome!

Installation

go get github.com/jandre/procfs

Examples

See the *_test files for usage, but in short:

import (
  "github.com/jandre/procfs"
)

// fetch all processes from /proc
// returns a map of pid -> *Process 
processes, err := procfs.Processes();

Documentation

Documentation can be found at: http://godoc.org/github.com/jandre/procfs