Popularity
3.4
Declining
Activity
0.0
Stable
67
2
11

Programming language: Go
License: BSD 2-clause "Simplified" License
Tags: Messaging    

go-notify alternatives and similar packages

Based on the "Messaging" category.
Alternatively, view go-notify alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of go-notify or a related project?

Add another 'Messaging' Package

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
}