Documentation
¶
Overview ¶
Package memory provides a single method reporting total system memory accessible to the kernel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TotalMemory ¶
func TotalMemory() uint64
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.