mirror of
https://github.com/prashantgupta24/automatic-mouse-mover.git
synced 2024-12-23 17:04:10 +00:00
17 lines
300 B
Go
17 lines
300 B
Go
package notify
|
|
|
|
import (
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
gosxnotifier "github.com/deckarep/gosx-notifier"
|
|
)
|
|
|
|
//SendMessage to OSX notification centre
|
|
func SendMessage(msg string) {
|
|
note := gosxnotifier.NewNotification(msg)
|
|
err := note.Push()
|
|
if err != nil {
|
|
log.Error("could not send")
|
|
}
|
|
}
|