osx

package
v0.0.0-...-adcb032 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

README

osx

GoDoc

Package osx contains operating system utilities. It means to be a complement to the standard os package.

Documentation

Overview

Package osx contains operating system utilities. It means to be a complement to the standard os package.

Index

Constants

View Source
const (
	// Arch32bit tells if the target architecture is 32-bit.
	Arch32bit = maxUint == 0xffffffff

	// Arch64bit tells if the target architecture is 64-bit.
	Arch64bit = uint64(maxUint) == 0xffffffffffffffff
)

Variables

This section is empty.

Functions

func OpenDefault

func OpenDefault(fileOrURL string) error

OpenDefault opens the specified file or URL with the default associated application.

You may use it to open a web site:

OpenDefault("https://google.com")

Or open a file:

OpenDefault("/home/bob/story.txt")

Or open a folder in your default file manager:

OpenDefault("/home/bob")

For details, see https://stackoverflow.com/a/39324149/1705598

Types

This section is empty.

Jump to

Keyboard shortcuts

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