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-16 10:22:26
最后一次提交2025-06-16 12:18:31
發布數3
最新版本名稱v0.11.1 (發布於 2025-06-16 12:22:20)
第一版名稱v0.10.0 (發布於 2025-06-11 22:40:13)
用户参与
星數1.6k
關注者數14
派生數94
提交數112
已啟用問題?
問題數39
打開的問題數6
拉請求數25
打開的拉請求數0
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?