You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cointop/vendor/github.com/gen2brain/beeep
Miguel Mota 1a789cb587
go mod vendor
3 years ago
..
.appveyor.yml Set up notification package 3 years ago
.travis.yml Set up notification package 3 years ago
LICENSE Set up notification package 3 years ago
README.md Set up notification package 3 years ago
alert_darwin.go Set up notification package 3 years ago
alert_js.go Set up notification package 3 years ago
alert_unix.go Set up notification package 3 years ago
alert_unsupported.go Set up notification package 3 years ago
alert_windows.go Set up notification package 3 years ago
beeep.go Set up notification package 3 years ago
beep_darwin.go Set up notification package 3 years ago
beep_js.go Set up notification package 3 years ago
beep_unix.go Set up notification package 3 years ago
beep_unsupported.go Set up notification package 3 years ago
beep_windows.go Set up notification package 3 years ago
notify_darwin.go Set up notification package 3 years ago
notify_js.go Set up notification package 3 years ago
notify_unix.go Set up notification package 3 years ago
notify_unsupported.go Set up notification package 3 years ago
notify_windows.go go mod vendor 3 years ago

README.md

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.