2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-18 15:25:31 +00:00
cointop/vendor/github.com/gen2brain/beeep
2021-09-04 13:31:08 -07:00
..
.appveyor.yml Set up notification package 2020-12-20 22:05:25 -08:00
.travis.yml Set up notification package 2020-12-20 22:05:25 -08:00
alert_darwin.go Set up notification package 2020-12-20 22:05:25 -08:00
alert_js.go Set up notification package 2020-12-20 22:05:25 -08:00
alert_unix.go Set up notification package 2020-12-20 22:05:25 -08:00
alert_unsupported.go Set up notification package 2020-12-20 22:05:25 -08:00
alert_windows.go Set up notification package 2020-12-20 22:05:25 -08:00
beeep.go Set up notification package 2020-12-20 22:05:25 -08:00
beep_darwin.go Set up notification package 2020-12-20 22:05:25 -08:00
beep_js.go Set up notification package 2020-12-20 22:05:25 -08:00
beep_unix.go Set up notification package 2020-12-20 22:05:25 -08:00
beep_unsupported.go Set up notification package 2020-12-20 22:05:25 -08:00
beep_windows.go Set up notification package 2020-12-20 22:05:25 -08:00
LICENSE Set up notification package 2020-12-20 22:05:25 -08:00
notify_darwin.go Set up notification package 2020-12-20 22:05:25 -08:00
notify_js.go Set up notification package 2020-12-20 22:05:25 -08:00
notify_unix.go Set up notification package 2020-12-20 22:05:25 -08:00
notify_unsupported.go Set up notification package 2020-12-20 22:05:25 -08:00
notify_windows.go go mod vendor 2021-09-04 13:31:08 -07:00
README.md Set up notification package 2020-12-20 22:05:25 -08:00

beeep

TravisCI Build Status AppVeyor Build Status GoDoc Go Report Card

beeep provides a cross-platform library for sending desktop notifications, alerts and beeps.

Installation

go get -u github.com/gen2brain/beeep

Examples

err := beeep.Beep(beeep.DefaultFreq, beeep.DefaultDuration)
if err != nil {
    panic(err)
}
err := beeep.Notify("Title", "Message body", "assets/information.png")
if err != nil {
    panic(err)
}
err := beeep.Alert("Title", "Message body", "assets/warning.png")
if err != nil {
    panic(err)
}

macOS

For icons to show up when using Alert() or Notify(), you will need to bundle your application with a app icon.

More

For cross-platform dialogs and input boxes see dlgs.