mirror of https://github.com/miguelmota/cointop
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.
1a789cb587 | 3 years ago | |
---|---|---|
.. | ||
.appveyor.yml | 4 years ago | |
.travis.yml | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
alert_darwin.go | 4 years ago | |
alert_js.go | 4 years ago | |
alert_unix.go | 4 years ago | |
alert_unsupported.go | 4 years ago | |
alert_windows.go | 4 years ago | |
beeep.go | 4 years ago | |
beep_darwin.go | 4 years ago | |
beep_js.go | 4 years ago | |
beep_unix.go | 4 years ago | |
beep_unsupported.go | 4 years ago | |
beep_windows.go | 4 years ago | |
notify_darwin.go | 4 years ago | |
notify_js.go | 4 years ago | |
notify_unix.go | 4 years ago | |
notify_unsupported.go | 4 years ago | |
notify_windows.go | 3 years ago |
README.md
beeep
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.