Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 559 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 559 Bytes

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