diff options
| author | Maxwell Krohn | 2016-05-17 12:18:01 -0500 |
|---|---|---|
| committer | Maxwell Krohn | 2016-05-17 12:18:01 -0500 |
| commit | c9cfceb1fd3b324cae19c41f247ef4355f22c279 (patch) | |
| tree | 9af98044b99a49204da29210de8d72e214ea7ada | |
| parent | 3ce551119129eb33d57ef8c612d1f4df93b0fa26 (diff) | |
| parent | c59c98186640a063ac0dc23fa35dac0a3756cb27 (diff) | |
| download | go-notifier-c9cfceb1fd3b324cae19c41f247ef4355f22c279.tar.bz2 | |
Merge pull request #2 from keybase/stub-for-mobile
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") +} |
