goldwarden/agent/notify/beeep.go

22 lines
329 B
Go
Raw Normal View History

2024-02-04 02:49:42 +03:00
//go:build darwin
package notify
2024-02-04 02:53:16 +03:00
import (
"time"
"github.com/gen2brain/beeep"
)
2024-01-19 07:34:48 +03:00
func Notify(title string, body string, actionName string, timeout time.Duration, onclose func()) error {
2024-02-04 02:53:16 +03:00
err := beeep.Notify(title, body, "")
if err != nil {
panic(err)
}
return nil
}
func ListenForNotifications() error {
return nil
}