repositorypackage
0.0.0-20210720154849-fa30c1b99391
Repository: https://github.com/quorin/beeep.git
Documentation: pkg.go.dev
# README
beeep
beeep
provides a cross-platform library for sending desktop notifications, alerts and beeps.
Installation
go get -u github.com/Quorin/beeep
Examples
err := beeep.Beep(beeep.DefaultFreq, beeep.DefaultDuration)
if err != nil {
panic(err)
}
err := beeep.Notify("App name", "Title", "Message body", "assets/information.png")
if err != nil {
panic(err)
}
err := beeep.Alert("App name", "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.