Registry / utility / pbnjay-memory

pbnjay-memory

JSON →
library0.0.0-20210728143218-7b4eea64cf58gogounverified

Provides a single method reporting total system memory accessible to the kernel.

go get github.com/pbnjay/memory
INSTALL
IMPORT
SIG · PBNJAY-MEMORY
P
pbnjay-memory
utilitygov0.0.0-20210728143218-7b4eea64cf58
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

memory
✓ github.com/pbnjay/memory

Prints the total system memory in megabytes.

package main import ( "fmt" "github.com/pbnjay/memory" ) func main() { fmt.Printf("Total system memory: %d MB\n", memory.TotalMemory()/1024/1024) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210728143218-7b4eea64cf58latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
pbnjay-memory — go get pbnjay-memory · libregistry