2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-16 21:25:38 +00:00
cointop/vendor/github.com/gen2brain/beeep/alert_unix.go
2020-12-20 22:05:25 -08:00

12 lines
283 B
Go

// +build linux freebsd netbsd openbsd
package beeep
// Alert displays a desktop notification and plays a beep.
func Alert(title, message, appIcon string) error {
if err := Notify(title, message, appIcon); err != nil {
return err
}
return Beep(DefaultFreq, DefaultDuration)
}