This repository has been archived on 2025-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
StarlioX/utils/notify.go

20 lines
337 B
Go

package utils
import "gopkg.in/toast.v1"
func Notify(title, message string, action toast.Action) {
notification := toast.Notification{
AppID: "EveryNASA",
Title: title,
Message: message,
Duration: toast.Long,
Actions: []toast.Action{
action,
},
}
err := notification.Push()
if err != nil {
panic(err)
}
}