macos

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BigSur = Version{
	OSName:        "macOS",
	Name:          "Big Sur",
	Version:       "11",
	DarwinVersion: 20,
}
View Source
var Catalina = Version{
	OSName:        "macOS",
	Name:          "Catalina",
	Version:       "10.15",
	DarwinVersion: 19,
}
View Source
var ElCapitan = Version{
	OSName:        "OS X",
	Name:          "El Capitan",
	Version:       "10.11",
	DarwinVersion: 15,
}
View Source
var HighSierra = Version{
	OSName:        "macOS",
	Name:          "High Sierra",
	Version:       "10.13",
	DarwinVersion: 17,
}
View Source
var Mojave = Version{
	OSName:        "macOS",
	Name:          "Mojave",
	Version:       "10.14",
	DarwinVersion: 18,
}
View Source
var Monterey = Version{
	OSName:        "macOS",
	Name:          "Monterey",
	Version:       "12",
	DarwinVersion: 21,
}
View Source
var Sierra = Version{
	OSName:        "macOS",
	Name:          "Sierra",
	Version:       "10.12",
	DarwinVersion: 16,
}
View Source
var Sonoma = Version{
	OSName:        "macOS",
	Name:          "Sonoma",
	Version:       "14",
	DarwinVersion: 23,
}
View Source
var Ventura = Version{
	OSName:        "macOS",
	Name:          "Ventura",
	Version:       "13",
	DarwinVersion: 22,
}

Functions

This section is empty.

Types

type Darwin

type Darwin int
const (
	DarwinUnknown Darwin = iota - 1
	DarwinJaguar  Darwin = iota + 5
	DarwinPanther
	DarwinTiger
	DarwinLeopard
	DarwinSnowLeopard
	DarwinLion
	DarwinMountainLion
	DarwinMavericks
	DarwinYosemite
	DarwinElCapitan
	DarwinSierra
	DarwinHighSierra
	DarwinMojave
	DarwinCatalina
	DarwinBigSur
	DarwinMonterey
	DarwinVentura
	DarwinSonoma
)

type Version

type Version struct {
	OSName        string
	Name          string
	Version       string
	DarwinVersion int
}

func (Version) Supports32Bit

func (v Version) Supports32Bit() bool

Supports32Bit reports whether the version supports 32-bit applications.

func (Version) Supports64Bit

func (v Version) Supports64Bit() bool

Supports64Bit reports whether the version supports 64-bit applications.

func (Version) SupportsARM

func (v Version) SupportsARM() bool

SupportsARM reports whether the version supports ARM applications.

Jump to

Keyboard shortcuts

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