1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-01-03 22:52:23 +02:00
notify/use.go

16 lines
352 B
Go
Raw Normal View History

2021-01-25 01:14:21 +02:00
package notify
2021-01-31 14:14:48 +02:00
// useService adds a given service to the notifiers services list.
func (n *Notify) useService(service Notifier) {
2021-01-25 01:14:21 +02:00
if service == nil {
return
}
n.notifiers = append(n.notifiers, service)
2021-01-25 01:14:21 +02:00
}
// UseService adds a given service to the notifiers services list.
func (n *Notify) UseService(service Notifier) {
2021-01-25 01:14:21 +02:00
n.useService(service)
}