A go package for Windows 10 toast notifications.
As seen in jacobmarshall/pokevision-cli.
package main
import (
toast "github.com/jacobmarshall/go-toast"
"log"
)
func main() {
notification := toast.Notification{
AppID: "Example App",
Title: "My notification",
Message: "Some message about how important something is...",
Icon: "go.png",
Actions: []toast.Action{
{"protocol", "I'm a button", ""},
{"protocol", "Me too!", ""},
},
}
err := notification.Push()
if err != nil {
log.Fatalln(err)
}
}