RaviTezu / go-toast

A go package for Windows 10 toast notifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toast

A go package for Windows 10 toast notifications.

As seen in jacobmarshall/pokevision-cli.

Screenshot

Toast

Action centre

Example

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)
    }
}

About

A go package for Windows 10 toast notifications


Languages

Language:Go 100.0%