osidentity

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

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

Identity represent how your os behave

func Detect

func Detect() *Identity

Detect returns an OS identifier.

func NewMacOSForTest

func NewMacOSForTest() *Identity

NewMacOSForTest returns new mac os like identity

func (*Identity) IsDebianLike

func (i *Identity) IsDebianLike() bool

IsDebianLike returns true if current platform behave like debian (including ubuntu)

func (*Identity) IsMacOS

func (i *Identity) IsMacOS() bool

IsMacOS returns true if current platform behave like macOS

Jump to

Keyboard shortcuts

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