macosversion

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 7 Imported by: 2

README

go-macos-version

Get or check the current macOS version in Go.

Install

$ go get github.com/wobsoriano/go-macos-version

Usage

package main

import (
	"fmt"
)

func main() {
}

Credits

https://github.com/sindresorhus/macos-version

License

MIT

Documentation

Index

Constants

View Source
const IsMacOS = runtime.GOOS == "darwin"

Variables

This section is empty.

Functions

func AssertMacOS

func AssertMacOS()

func AssertMacOSVersion

func AssertMacOSVersion(semverRange string)

func IsMacOSVersion

func IsMacOSVersion(semverRange string) (bool, error)

func MacOSVersion

func MacOSVersion() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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