platform

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type System

type System struct {
	// contains filtered or unexported fields
}

func (System) Arch

func (s System) Arch() (string, error)

Arch: Returns the architecture of the running platform

func (System) Distro

func (s System) Distro() string

Distro: Reads & Returns the running Linux distribution from /etc/os-release

func (System) DistroVersion added in v0.9.6

func (s System) DistroVersion() string

DistroVersion: Reads & Returns the VERSION_ID from /etc/os-release.

func (System) Platform

func (s System) Platform() (string, error)

Platform: Returns the host operating system

func (System) PrettyDistro added in v0.9.6

func (s System) PrettyDistro() string

PrettyDistro: Reads & Returns a string that contains the running Linux distribution and it's version.

func (System) WindowsEdition added in v1.1.0

func (s System) WindowsEdition() (string, error)

WindowsEdition: Returns the Windows edition by leveraging the Windows registry (Home, Professional, etc.)

Jump to

Keyboard shortcuts

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