I want to send a system notifications to windows using golang.
How can this be done? if you awnser contains a cross platform solution it would be even better.
I'm assuming you are looking for desktop notifications. There are a few different libraries that can do this for you. Originally I found this with a simple Google search
Link / Dependency URL: github.com/0xAX/notificator
Here is the example on their README.md page:
package main
import (
"github.com/0xAX/notificator"
)
var notify *notificator.Notificator
func main() {
notify = notificator.New(notificator.Options{
DefaultIcon: "icon/default.png",
AppName: "My test App",
})
notify.Push("title", "text", "/home/user/icon.png", notificator.UR_CRITICAL)
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With