This is a golang library that provides an implementation of the freedesktop notification spec using the DBUS api.
package main
import (
"log"
"github.com/TheCreeper/go-notify"
)
func main() {
ntf, err := notify.NotificationNew("Test Notification", "This is a test notification")
if err != nil {
log.Fatal(err)
}
if _, err := ntf.Send(); err != nil {
log.Fatal(err)
}
}