piframe-go/vendor/github.com/guillermo/go.procmeminfo/README.md
2020-08-30 19:46:07 -04:00

708 B

procmeminfo

GoDoc

Package procmeminfo provides an interface for /proc/meminfo

    import "github.com/guillermo/go.procmeminfo"
    meminfo := &procmeminfo.MemInfo{}
    meminfo.Update()

    (*meminfo)['Cached'] // Get cached memory
    (*meminfo)['Buffers'] // Get buffers size
    (*meminfo)['...'] // Any field in /proc/meminfo

    meminfo.Total() // Total memory size in bytes
    meminfo.Free() // Free Memory (Free + Cached + Buffers)
    meminfo.Used() // Total - Used

Docs

Visit: http://godoc.org/github.com/guillermo/go.procmeminfo

LICENSE

BSD