Skip to content

go-toast/toast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published