init commit
This commit is contained in:
17
notification_windows.go
Normal file
17
notification_windows.go
Normal file
@@ -0,0 +1,17 @@
|
||||
//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()
|
||||
}
|
||||
Reference in New Issue
Block a user