memory

package
Version: v0.0.0-...-bf74b40 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

memory implemnts a function for reading /proc/meminfo. This contains data of how much virtual memory is used/free etc.

memAvailable, memTotal, err := memory.GetMemory()

memAvailable and memTotal are float64 and the units are GigaBytes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMemory

func GetMemory() (memAvailable, memTotal float64, err error)

GetMemory will read /proc/meminfo and return the available and used virtual memory.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL