hostParameters

package
v0.0.0-...-08f901d Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHostParameterGetter

func NewHostParameterGetter(version string) *hostParametersGetter

NewHostParameterGetter will create a structure that is able to get and format the host's relevant parameters

Types

type HostInfo

type HostInfo struct {
	AppVersion      string
	CPUModel        string
	CPUNumLogical   int
	CPUFlags        []string
	CPUMaxFreqInMHz int
	MemorySize      string
}

HostInfo will contain the host information

func (*HostInfo) ToDisplayTable

func (hi *HostInfo) ToDisplayTable() string

ToDisplayTable will output the contained data as an ASCII table

func (*HostInfo) ToStrings

func (hi *HostInfo) ToStrings() [][]string

ToStrings will return the contained data as strings (to be easily written, e.g. in a file)

Jump to

Keyboard shortcuts

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