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:
parent
f98e77001f
commit
5c3235363c
12
use.go
12
use.go
@ -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...)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user