1package main
2
3import "github.com/godbus/dbus/v5"
4
5func main() {
6	conn, err := dbus.ConnectSessionBus()
7	if err != nil {
8		panic(err)
9	}
10	defer conn.Close()
11
12	obj := conn.Object("org.freedesktop.Notifications", "/org/freedesktop/Notifications")
13	call := obj.Call("org.freedesktop.Notifications.Notify", 0, "", uint32(0),
14		"", "Test", "This is a test of the DBus bindings for go.", []string{},
15		map[string]dbus.Variant{}, int32(5000))
16	if call.Err != nil {
17		panic(call.Err)
18	}
19}
20