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

notify

package
v0.32.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package notify provides cross-platform OS-level desktop notifications.

It detects the current operating system and uses the appropriate notification tool (osascript on macOS, notify-send on Linux, PowerShell on Windows). When no notification tool is available, it returns a no-op notifier.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopNotifier

type NoopNotifier struct{}

NoopNotifier does nothing when Notify is called.

func (NoopNotifier) Notify

func (NoopNotifier) Notify(title, message string) error

type Notifier

type Notifier interface {
	Notify(title, message string) error
}

Notifier sends OS-level notifications.

func New

func New() Notifier

New returns the platform-appropriate Notifier, or a NoopNotifier if no notification tool is available on the current platform.

Jump to

Keyboard shortcuts

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