sysmem

package
v0.39.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package sysmem reports machine memory.

It reads /proc/meminfo on Linux and reports "unknown" elsewhere, so callers must handle absence rather than assume a number. Needs no cgroup, no systemd, and no privileges — which is why it still works on Termux/Android, where scope isolation does not.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() (uint64, bool)

Available reports the kernel's estimate of allocatable memory in bytes; ok is false when unknown.

func Total

func Total() (uint64, bool)

Total reports total RAM in bytes; ok is false when unknown.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL