18 lines
337 B
Go
18 lines
337 B
Go
//go:build windows
|
|
|
|
package main
|
|
|
|
import "github.com/go-toast/toast"
|
|
|
|
// SendNotification shows a Windows Action Center notification.
|
|
func SendNotification(title, message string) {
|
|
n := toast.Notification{
|
|
AppID: "kettuRay",
|
|
Title: title,
|
|
Message: message,
|
|
Duration: toast.Short,
|
|
Audio: toast.Silent,
|
|
}
|
|
_ = n.Push()
|
|
}
|