operatingsystem

package
v3.0.0-alpha.8.3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OS

type OS struct {
	ID       string
	Name     string
	Version  string
	Branding string
}

OS contains information about the operating system

func Info

func Info() (*OS, error)

Info retrieves information about the current platform

func (*OS) AsLogSlice

func (o *OS) AsLogSlice() []any

type WebkitVersion

type WebkitVersion struct {
	Major uint
	Minor uint
	Micro uint
}

func GetWebkitVersion

func GetWebkitVersion() WebkitVersion

func (WebkitVersion) IsAtLeast

func (v WebkitVersion) IsAtLeast(major int, minor int, micro int) bool

func (WebkitVersion) String

func (v WebkitVersion) String() string

Jump to

Keyboard shortcuts

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