niotify/niotify_unsupported.go

20 lines
420 B
Go

//+build !linux,!android,!darwin
package niotify
type unsupportedManager struct{}
func newManager() (Manager, error) {
return Manager{unsupportedManager{}}, nil
}
func (u unsupportedManager) CreateNotification(title, text string) (*Notification, error) {
return &Notification{unsupportedNotification{}}, nil
}
type unsupportedNotification struct{}
func (u unsupportedNotification) Cancel() error {
return nil
}