aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxwell Krohn2016-05-16 09:23:58 -0400
committerMaxwell Krohn2016-05-16 09:23:58 -0400
commitc59c98186640a063ac0dc23fa35dac0a3756cb27 (patch)
tree0d6ca0cfd187c02c0cb398b133796736526ff4a0
parent1a97dd20fd0dd0bc898364570b516d729fbcd869 (diff)
downloadgo-notifier-c59c98186640a063ac0dc23fa35dac0a3756cb27.tar.bz2
add a stub for mobile (and others)
-rw-r--r--notifier_other.go16
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")
+}