package sysresources
import "tailscale.com/util/sysresources"
Package sysresources provides OS-independent methods of determining the resources available to the current system.
Index ¶
Functions ¶
func TotalMemory ¶
func TotalMemory() uint64
TotalMemory returns the total accessible system memory, in bytes. If the value cannot be determined, then 0 will be returned.
Source Files ¶
memory.go memory_linux.go sysresources.go
- Version
- v1.84.0 (latest)
- Published
- May 21, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 1 day ago –
Tools for package owners.