Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

meme

Get memory usage information in Go. This library obtains and parses memory data from /proc/meminfo.

Currently Linux only.

Install and Use

In your project directory, type

go get github.com/alexcoder04/meme

And then, in your code

memData, err:=meme.GetMemInfo()

The result comes in following type:

typeMemDatastruct {
Buffersfloat64Cachedfloat64MemAvailablefloat64MemFreefloat64MemTotalfloat64Sharedfloat64Usedfloat64SwapFreefloat64SwapTotalfloat64SwapUsedfloat64
}

Releases

Used by

Contributors

Languages