beeep

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

  • 所有者: gen2brain/beeep
  • 平台: Linux, Mac, Windows
  • 许可证: BSD 2-Clause "Simplified" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

主要指标

概览
名称与所有者gen2brain/beeep
主编程语言Go
编程语言Go (语言数: 1)
平台Linux, Mac, Windows
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2017-12-11 09:14:08
推送于2025-06-12 13:00:17
最后一次提交2025-06-12 14:22:07
发布数2
最新版本名称v0.11.0 (发布于 2025-06-12 15:00:13)
第一版名称v0.10.0 (发布于 2025-06-11 22:40:13)
用户参与
星数1.6k
关注者数14
派生数95
提交数111
已启用问题?
问题数38
打开的问题数7
拉请求数25
打开的拉请求数0
关闭的拉请求数4
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?