diff options
| author | Gabriel Handford | 2016-05-11 20:01:34 -0700 |
|---|---|---|
| committer | Gabriel Handford | 2016-05-11 20:01:34 -0700 |
| commit | 1a97dd20fd0dd0bc898364570b516d729fbcd869 (patch) | |
| tree | 2bd7948cccbff60e6f84ac588aabad8ebab5d8c2 /notifier.go | |
| parent | bab68cd21095985c5d867e44f0844ab4be7c2a95 (diff) | |
| download | go-notifier-1a97dd20fd0dd0bc898364570b516d729fbcd869.tar.bz2 | |
Alert style notifications (for OS X)
- Embeds Info.plist with alert style default (in script)
- Includes timeout
- Outputs action
Diffstat (limited to 'notifier.go')
| -rw-r--r-- | notifier.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/notifier.go b/notifier.go index 35f3e0e..daf077d 100644 --- a/notifier.go +++ b/notifier.go @@ -8,9 +8,14 @@ type Notification struct { Title string Message string ImagePath string - BundleID string // For darwin - Actions []string // For darwin - ToastPath string // For windows (Toaster) + + // For darwin + Actions []string + Timeout float64 + BundleID string + + // For windows + ToastPath string // Path to toast.exe } // Notifier knows how to deliver a notification |
