notify

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package notify posts desktop notifications through whatever the platform already has — osascript on macOS, notify-send on Linux, PowerShell toasts on Windows. Nothing is installed and nothing is required: on a machine without the helper the call is a silent no-op, because a missing notification must never interrupt a download.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled reports whether notifications should be posted. WEBTOR_NO_NOTIFY silences them; so does a machine with no helper.

func Post

func Post(title, body string)

Post shows a notification. Errors are deliberately swallowed: this is a courtesy, never a dependency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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