mirror of
https://github.com/muesli/telephant
synced 2024-11-23 03:43:10 +00:00
17 lines
276 B
Go
17 lines
276 B
Go
package main
|
|
|
|
import "github.com/gen2brain/beeep"
|
|
|
|
func notify(title string, body string) {
|
|
err := beeep.Notify(title, body, "")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
err := beeep.Beep(beeep.DefaultFreq, beeep.DefaultDuration)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|