diff options
| author | Maxwell Krohn | 2016-05-16 09:23:58 -0400 | 
|---|---|---|
| committer | Maxwell Krohn | 2016-05-16 09:23:58 -0400 | 
| commit | c59c98186640a063ac0dc23fa35dac0a3756cb27 (patch) | |
| tree | 0d6ca0cfd187c02c0cb398b133796736526ff4a0 | |
| parent | 1a97dd20fd0dd0bc898364570b516d729fbcd869 (diff) | |
| download | go-notifier-c59c98186640a063ac0dc23fa35dac0a3756cb27.tar.bz2 | |
add a stub for mobile (and others)
| -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") +} | 
