Documentation ¶
Overview ¶
Package macos contains utilities for checking macOS system capabilities.
Index ¶
- func CLTInstalled(ctx context.Context) (bool, error)
- type Version
- func (v Version) CLTInstalledVersion(ctx context.Context) (bool, error)
- func (v Version) Darwin() int
- func (v Version) FullName() string
- func (v Version) Name() string
- func (v Version) OSVersion() string
- func (v Version) Supports32Bit() bool
- func (v Version) Supports64Bit() bool
- func (v Version) SupportsARM() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Version ¶
type Version int
Version represents a macOS version.
The macOS release is represented by the version of the darwin kernel it shipped with.
const ( Unknown Version = iota - 1 // Unknown version Jaguar Version = iota + 5 // Mac OS X Jaguar Panther // Mac OS X Panther Tiger // Mac OS X Tiger Leopard // Mac OS X Leopard SnowLeopard // Mac OS X Snow Leopard Lion // Mac OS X Lion MountainLion // OS X Mountain Lion Mavericks // OS X Mavericks Yosemite // OS X Yosemite ElCapitan // OS X El Capitan Sierra // macOS Sierra HighSierra // macOS High Sierra Mojave // macOS Mojave Catalina // macOS Catalina BigSur // macOS Big Sur Monterey // macOS Monterey Ventura // macOS Ventura Sonoma // macOS Sonoma )
Known macOS versions.
Source: https://en.wikipedia.org/wiki/Template:MacOS_versions
func (Version) CLTInstalledVersion ¶ added in v0.2.0
CLTInstalled reports whether the XCode Command Line Tools are installed.
func (Version) Supports32Bit ¶
Supports32Bit reports whether the version supports 32-bit applications.
func (Version) Supports64Bit ¶
Supports64Bit reports whether the version supports 64-bit applications.
func (Version) SupportsARM ¶
SupportsARM reports whether the version supports ARM applications.
Click to show internal directories.
Click to hide internal directories.