beeep

Go 跨平台库用于发送桌面通知、警报和提示音。「Go cross-platform library for sending desktop notifications, alerts and beeps」

  • Owner: gen2brain/beeep
  • Platform: Linux, Mac, Windows
  • License:: BSD 2-Clause "Simplified" License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownergen2brain/beeep
Primary LanguageGo
Program languageGo (Language Count: 1)
PlatformLinux, Mac, Windows
License:BSD 2-Clause "Simplified" License
所有者活动
Created At2017-12-11 09:14:08
Pushed At2025-06-16 10:22:26
Last Commit At2025-06-16 12:18:31
Release Count3
Last Release Namev0.11.1 (Posted on 2025-06-16 12:22:20)
First Release Namev0.10.0 (Posted on 2025-06-11 22:40:13)
用户参与
Stargazers Count1.6k
Watchers Count14
Fork Count94
Commits Count112
Has Issues Enabled
Issues Count39
Issue Open Count6
Pull Requests Count25
Pull Requests Open Count0
Pull Requests Close Count4
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private