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 At2024-05-16 21:00:08
Last Commit At2024-05-16 23:00:08
Release Count0
用户参与
Stargazers Count1.6k
Watchers Count14
Fork Count95
Commits Count91
Has Issues Enabled
Issues Count38
Issue Open Count17
Pull Requests Count25
Pull Requests Open Count2
Pull Requests Close Count2
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private