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.86.4 (latest)
- Published
- Aug 7, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 3 hours ago –
Tools for package owners.