mirror of
https://github.com/nikoksr/notify.git
synced 2024-12-16 10:29:42 +02:00
16 lines
352 B
Go
16 lines
352 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)
|
|
}
|