MCPcopy Index your code
hub / github.com/cloudfoundry/gosigar

github.com/cloudfoundry/gosigar @v1.3.122

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3.122 ↗ · + Follow
304 symbols 649 edges 35 files 72 documented · 24% 2 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Go sigar

Overview

Go sigar is a golang implementation of the sigar API. 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

$ git clone https://github.com/cloudfoundry/gosigar.git
$ cd gosigar/examples
$ go run uptime.go
$ go run df.go
$ go run free.go
$ go run ps.go

Supported platforms

Currently targeting modern flavors of macOS (Darwin), Windows and Linux.

License

Apache 2.0

Extension points exported contracts — how you extend this code

Sigar (Interface)
(no doc) [2 implementers]
sigar_interface.go

Core symbols most depended-on inside this repo

Get
called by 62
sigar_linux.go
strtoull
called by 23
sigar_linux.go
determineMemoryLimit
called by 11
sigar_linux.go
readFile
called by 9
sigar_linux.go
determineSwapUsage
called by 8
sigar_linux.go
determineMemoryUsage
called by 8
sigar_linux.go
format
called by 8
examples/free/free.go
determineSelfCgroup
called by 6
sigar_linux.go

Shape

Function 132
Method 117
Struct 51
Interface 2
TypeAlias 2

Languages

Go100%

Modules by API surface

sigar_linux.go29 symbols
sys/windows/syscall_windows.go26 symbols
sigar_interface.go26 symbols
sigar_freebsd.go21 symbols
sigar_darwin.go21 symbols
sys/windows/zsyscall_windows.go20 symbols
sigar_linux_test.go18 symbols
psnotify/psnotify_test.go18 symbols
sigar_windows.go17 symbols
psnotify/psnotify_linux.go17 symbols
psnotify/psnotify.go13 symbols
sys/windows/syscall_windows_test.go12 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add gosigar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page