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
..
.appveyor.yml
.travis.yml
LICENSE
README.md
alert_darwin.go
alert_js.go
alert_unix.go
alert_unsupported.go
alert_windows.go
beeep.go
beep_darwin.go
beep_js.go
beep_unix.go
beep_unsupported.go
beep_windows.go
go.mod
go.sum
notify_darwin.go
notify_js.go
notify_unix.go
notify_unsupported.go
notify_windows.go

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.