Documentation
¶
Overview ¶
Package mac provides a set of functions to interact with the macOS platform.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotInAppBundle = errors.New("mac: executable is not inside an application bundle")
ErrNotInAppBundle is returned when the current executable is not inside a macOS application bundle.
Functions ¶
func LoadResource ¶
LoadResource reads a resource from the current application's Contents/Resources directory.
Resource names use slash-separated paths relative to Contents/Resources. Use ResourceFS to open or stream larger resources instead of loading them entirely into memory.
func ResourceFS ¶
ResourceFS returns a read-only file system rooted at the current application's Contents/Resources directory.
Use ResourceFS when resources should be opened or streamed on demand. For small resources that should be read entirely into memory, use LoadResource.
func ResourcePath ¶
ResourcePath returns the path to the current application's Contents/Resources directory.
Types ¶
This section is empty.