mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-24 06:17:44 +03:00
22 lines
329 B
Go
22 lines
329 B
Go
//go:build darwin
|
|
|
|
package notify
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/gen2brain/beeep"
|
|
)
|
|
|
|
func Notify(title string, body string, actionName string, timeout time.Duration, onclose func()) error {
|
|
err := beeep.Notify(title, body, "")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func ListenForNotifications() error {
|
|
return nil
|
|
}
|