Skip to content

Commit

Permalink
Add readme & screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jmshal committed Jul 29, 2016
1 parent 23ba1ef commit c39b73a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Toast

A go package for Windows 10 toast notifications.

As seen in [jacobmarshall/pokevision-cli](https://github.com/jacobmarshall/pokevision-cli).

## Screenshot

![Screenshot](./screenshot.png)

## 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)
}
}
```
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c39b73a

Please sign in to comment.