Documentation ¶
Overview ¶
Package system provides the functionality necessary for interacting with the macOS system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Release ¶
type Release uint8
Release is used to define macOS releases in an enumerated constant (e.g. Mojave, Catalina, BigSur)
type System ¶
type System struct {
// contains filtered or unexported fields
}
System correlates VersionInfo with a Product.
type VersionInfo ¶
type VersionInfo struct { ProductBuildVersion string `plist:"ProductBuildVersion"` ProductCopyright string `plist:"ProductCopyright"` ProductName string `plist:"ProductName"` ProductUserVisibleVersion string `plist:"ProductUserVisibleVersion"` ProductVersion string `plist:"ProductVersion"` IOSSupportVersion string `plist:"iOSSupportVersion"` }
VersionInfo mirrors the raw data found in the SystemVersion plist file.
func (*VersionInfo) Product ¶
func (v *VersionInfo) Product() (*Product, error)
Product determines the specific product that the VersionInfo.ProductVersion is associated with.
Click to show internal directories.
Click to hide internal directories.