diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-01-11 23:28:47 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-01-11 23:28:47 +0200 |
commit | 331597b9f8a7942cbcb233a328301e4d5bf94fb0 (patch) | |
tree | 5ec624585ebf66c63549a098acb6f7421f1193a7 /vendor/gopkg.in/toast.v1/readme.md | |
parent | 2fc3378b717f40f37f3a188b68407887242d9c06 (diff) |
Switch to Go modules and make other changes
Diffstat (limited to 'vendor/gopkg.in/toast.v1/readme.md')
-rw-r--r-- | vendor/gopkg.in/toast.v1/readme.md | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/vendor/gopkg.in/toast.v1/readme.md b/vendor/gopkg.in/toast.v1/readme.md deleted file mode 100644 index 4dbc207..0000000 --- a/vendor/gopkg.in/toast.v1/readme.md +++ /dev/null @@ -1,61 +0,0 @@ -# Toast - -A go package for Windows 10 toast notifications. - -As seen in [jacobmarshall/pokevision-cli](https://github.com/jacobmarshall/pokevision-cli). - -## CLI - -As well as using go-toast within your Go projects, you can also utilise the CLI - for any of your projects. - -Download [64bit](https://go-toast-downloads.s3.amazonaws.com/v1/toast64.exe) or [32bit](https://go-toast-downloads.s3.amazonaws.com/v1/toast32.exe) - -```cmd -C:\Users\Example\Downloads\toast64.exe \ - --app-id "Example App" \ - --title "Hello World" \ - --message "Lorem ipsum dolor sit amet, consectetur adipiscing elit." \ - --icon "C:\Users\Example\Pictures\icon.png" \ - --audio "default" --loop \ - --duration "long" \ - --activation-arg "https://google.com" \ - --action "Open maps" --action-arg "bingmaps:?q=sushi" \ - --action "Open browser" --action-arg "http://..." -``` - -![CLI](./screenshot-cli.png) - -## Example - -```go -package main - -import ( - "log" - - "gopkg.in/toast.v1" -) - -func main() { - notification := toast.Notification{ - AppID: "Example App", - Title: "My notification", - Message: "Some message about how important something is...", - Icon: "go.png", // This file must exist (remove this line if it doesn't) - Actions: []toast.Action{ - {"protocol", "I'm a button", ""}, - {"protocol", "Me too!", ""}, - }, - } - err := notification.Push() - if err != nil { - log.Fatalln(err) - } -} -``` - -## Screenshots - -![Toast](./screenshot-toast.png) - -![Action centre](./screenshot-action-centre.png) |