Help us shape the future of Go! Take the 2026 Go Developer Survey

macosversion

command
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

macosversion reports the current macOS version by querying NSProcessInfo from the generated Foundation framework bindings.

When GITHUB_OUTPUT is set the results are written as GitHub Actions step outputs:

macos_version  – full macOS version string, e.g. "26.5"
macos_major    – macOS major version number, e.g. "26"
macos_minor    – macOS minor version number, e.g. "5"

When running locally the same key=value pairs are printed to stdout.

Jump to

Keyboard shortcuts

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