12 lines
287 B
Go
12 lines
287 B
Go
//go:build !windows
|
|||
|
|
|
||
|
|
package notify
|
||
|
|
|
||
|
|
// Noop drops every notification; Linux and macOS stay silent by design.
|
||
|
|
type Noop struct{}
|
||
|
|
|
||
|
|
func (Noop) Send(title, body string) error { return nil }
|
||
|
|
|
||
|
|
// Platform returns the no-op sender on Linux and macOS.
|
||
|
|
func Platform() Sender { return Noop{} }
|