mirror of
https://github.com/muesli/telephant
synced 2024-11-13 23:37:11 +00:00
16 lines
239 B
Go
16 lines
239 B
Go
// +build linux darwin
|
|
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/gen2brain/beeep"
|
|
)
|
|
|
|
func notify(title string, body string) {
|
|
err := beeep.Notify(title, body, "")
|
|
if err != nil {
|
|
log.Println("Error sending notification:", err)
|
|
}
|
|
}
|