diff options
Diffstat (limited to 'notifier_other.go')
| -rw-r--r-- | notifier_other.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/notifier_other.go b/notifier_other.go new file mode 100644 index 0000000..519c054 --- /dev/null +++ b/notifier_other.go @@ -0,0 +1,16 @@ +// +build !windows,!darwin,!linux + +// A stub for mobile platforms and others that don't support notifications +// via popup-style windows. + +package notifier + +import ( + "errors" +) + +// NewNotifier running on a non-linux, non-windows and non-darwin platform +// should just return the nil no-op notifier. +func NewNotifier() (Notifier, error) { + return nil, errors.New("no notifier available on this platform") +} |
