# Go sigar

## Overview

Go sigar is a golang implementation of the
[sigar API](https://github.com/hyperic/sigar).  The Go version of
sigar has a very similar interface, but is being written from scratch
in pure go/cgo, rather than cgo bindings for libsigar.

## Test drive

    $ go get github.com/elastic/gosigar
    $ cd $GOPATH/src/github.com/elastic/gosigar/examples/ps
    $ go build
    $ ./ps

## Supported platforms

Currently targeting modern flavors of darwin and linux and windows.

## License

Apache 2.0

# Go sigar

## Overview

Go sigar is a golang implementation of the
[sigar API](https://github.com/hyperic/sigar).  The Go version of
sigar has a very similar interface, but is being written from scratch
in pure go/cgo, rather than cgo bindings for libsigar.

## Test drive

    $ go get github.com/elastic/gosigar
    $ cd $GOPATH/src/github.com/elastic/gosigar/examples/ps
    $ go build
    $ ./ps

## Supported platforms

The features vary by operating system.

| Feature         | Linux | Darwin | Windows | OpenBSD |
|-----------------|:-----:|:------:|:-------:|:-------:|
| Cpu             |   X   |    X   |    X    |    X    |
| CpuList         |   X   |    X   |         |         |
| FileSystemList  |   X   |    X   |    X    |    X    |
| FileSystemUsage |   X   |    X   |    X    |    X    |
| LoadAverage     |   X   |    X   |         |    X    |
| Mem             |   X   |    X   |    X    |    X    |
| ProcArgs        |   X   |    X   |    X    |         |
| ProcExe         |   X   |    X   |         |         |
| ProcList        |   X   |    X   |    X    |         |
| ProcMem         |   X   |    X   |    X    |         |
| ProcState       |   X   |    X   |    X    |         |
| ProcTime        |   X   |    X   |    X    |         |
| Swap            |   X   |    X   |         |    X    |
| Uptime          |   X   |    X   |         |    X    |

## License

Apache 2.0

Add table of implemented features by OS.
Add table of implemented features by OS.
