1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-01-24 03:16:35 +02:00
notify/use.go
2021-02-01 19:48:33 +00:00

15 lines
351 B
Go

package notify
// useService adds a given service to the notifiers services list.
func (n *Notify) useService(service Notifier) {
if service == nil {
return
}
n.notifiers = append(n.notifiers, service)
}
// UseService adds a given service to the notifiers services list.
func (n *Notify) UseService(service Notifier) {
n.useService(service)
}