Skip to content

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

License

Notifications You must be signed in to change notification settings

TheCreeper/go-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-notify

go-notify

This is a golang library that provides an implementation of the Freedesktop Notifications Specification using the DBUS api.

Example

package main

import (
	"log"

	"github.com/TheCreeper/go-notify"
)

func main() {

	ntf, err := notify.NewNotification("Test Notification", "This is a test notification")
	if err != nil {

		log.Fatal(err)
	}

	if _, err := ntf.Send(); err != nil {

		log.Fatal(err)
	}
}