Source File
doc.go
Belonging Package
github.com/pbnjay/memory
// Package memory provides a single method reporting total system memory// accessible to the kernel.package memory// TotalMemory returns the total accessible system memory in bytes.//// The total accessible memory is installed physical memory size minus reserved// areas for the kernel and hardware, if such reservations are reported by// the operating system.//// If accessible memory size could not be determined, then 0 is returned.func () uint64 {return sysTotalMemory()}// FreeMemory returns the total free system memory in bytes.//// The total free memory is installed physical memory size minus reserved// areas for other applications running on the same system.//// If free memory size could not be determined, then 0 is returned.func () uint64 {return sysFreeMemory()}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |