utils

package module
v0.0.0-...-ab9eab5 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 7 Imported by: 0

README

Go utility pack

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func System

func System(command string)

Runs the command and print its standard output.

Types

type MemoryInfo

type MemoryInfo struct {
	Total         string
	Using         string
	Avaliable     string
	UsePercentage string
}

func GetMemoryInfo

func GetMemoryInfo() MemoryInfo

Return some information about the machine's memory.

Reference: https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-globalmemorystatusex

Jump to

Keyboard shortcuts

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