uname

package
v0.0.0-...-f4eed6f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uname

type Uname struct {
	unix.Utsname
}

Uname extends unix.Utsname to provide convience methods to return uname information as strings.

func New

func New() (*Uname, error)

New calls unix.Uname

func (*Uname) Domainname

func (u *Uname) Domainname() string

Domainname returns the system's domainname as a string.

func (*Uname) Machine

func (u *Uname) Machine() string

Machine returns the system's machine name as a string

func (*Uname) Nodename

func (u *Uname) Nodename() string

Nodename returns the system's node name as a string

func (*Uname) Release

func (u *Uname) Release() string

Release returns the system's release as a string

func (*Uname) Sysname

func (u *Uname) Sysname() string

Sysname returns the system's name as a string.

func (*Uname) Version

func (u *Uname) Version() string

Version returns the system's version as a string

Jump to

Keyboard shortcuts

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