MCPcopy Index your code
hub / github.com/TheCreeper/go-notify

github.com/TheCreeper/go-notify @v0.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.0 ↗ · + Follow
13 symbols 32 edges 2 files 8 documented · 62% updated 5y ago★ 711 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

go-notify

PkgGoDev

Package notify provides an implementation of the Gnome DBus Notifications Specification.

Examples

Display a simple notification.

ntf := notify.NewNotification("Test Notification", "Just a test")
if _, err := ntf.Show(); err != nil {
    return
}

Display a notification with an icon. Consult the Icon Naming Specification.

ntf := notify.NewNotification("Test Notification", "Just a test")
ntf.AppIcon = "network-wireless"
if _, err := ntf.Show(); err != nil {
    return
}

Display a notification that never expires.

ntf := notify.NewNotification("Test Notification", "Just a test")
ntf.Timeout = notify.ExpiresNever
if _, err := ntf.Show(); err != nil {
    return
}

Play a sound with the notification.

ntf := notify.NewNotification("Test Notification", "Just a test")
ntf.Hints = make(map[string]interface{})
ntf.Hints[notify.HintSoundFile] = "/home/my-username/sound.oga"
if _, err := ntf.Show(); err != nil {
    return
}

Core symbols most depended-on inside this repo

Shape

Function 9
Struct 3
Method 1

Languages

Go100%

Modules by API surface

notify.go8 symbols
notify_test.go5 symbols

For agents

$ claude mcp add go-notify \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page