🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/ravitezu/go-toast

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ravitezu/go-toast

v0.0.0-20160729142230-d6a6b6b8bfda
Version published
Created

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

FAQs

Package last updated on 29 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts