🎉 support client message push

This commit is contained in:
Song
2021-06-13 17:52:41 +08:00
parent fcb48d4ff0
commit 018d252e5d
11 changed files with 485 additions and 6 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import (
"fmt"
"github.com/gen2brain/beeep"
)
type Message struct {
Title string
Description string
}
func Notify(message *Message) {
err := beeep.Notify(message.Title, message.Description, "assets/information.png")
if err != nil {
fmt.Println(err)
}
}