1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-11-21 16:46:32 +02:00

chore(naming): change list parameter names to plural

This commit is contained in:
Niko Köser 2022-04-25 23:52:39 +02:00
parent f98e77001f
commit 5c3235363c
No known key found for this signature in database
GPG Key ID: F3F28C118DAA6375

12
use.go
View File

@ -8,18 +8,18 @@ func (n *Notify) useService(service Notifier) {
}
// useServices adds the given service(s) to the Notifier's services list.
func (n *Notify) useServices(service ...Notifier) {
for _, s := range service {
func (n *Notify) useServices(services ...Notifier) {
for _, s := range services {
n.useService(s)
}
}
// UseServices adds the given service(s) to the Notifier's services list.
func (n *Notify) UseServices(service ...Notifier) {
n.useServices(service...)
func (n *Notify) UseServices(services ...Notifier) {
n.useServices(services...)
}
// UseServices adds the given service(s) to the Notifier's services list.
func UseServices(service ...Notifier) {
std.UseServices(service...)
func UseServices(services ...Notifier) {
std.UseServices(services...)
}