- Fix window/service.go: replace 3 fmt.Errorf calls with coreerr.E() (removes implicit fmt dependency)
- Add usage-example comments to all bare Register() functions across 10 packages
- Remove redundant prose comments (Options/Service/Register/OnStartup/HandleIPCEvents boilerplate)
- Add Result-type comments to message types in contextmenu, keybinding, notification packages
- Fix test naming to TestFilename_Function_{Good,Bad,Ugly} pattern in display_test, window_test, persistence_test, service_screen_test
- Convert New() and CreateWindowOptions doc comments to usage-example style
Co-Authored-By: Virgil <virgil@lethean.io>
13 lines
535 B
Go
13 lines
535 B
Go
package notification
|
|
|
|
// QueryPermission returns current notification permission status. Result: PermissionStatus
|
|
type QueryPermission struct{}
|
|
|
|
// TaskSend sends a native notification, falling back to dialog on failure.
|
|
type TaskSend struct{ Options NotificationOptions }
|
|
|
|
// TaskRequestPermission requests notification permission from the OS. Result: bool (granted)
|
|
type TaskRequestPermission struct{}
|
|
|
|
// ActionNotificationClicked is broadcast when the user clicks a notification.
|
|
type ActionNotificationClicked struct{ ID string }
|