Merge pull request #32 from prashanthpai/doc-fix-use-services

docs(readme): Fix UseService usage
This commit is contained in:
Niko Köser
2021-02-07 11:54:37 +01:00
committed by GitHub
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ telegramService.AddReceivers("-1234567890")
// Tell our notifier to use the telegram service. You can repeat the above process
// for as many services as you like and just tell the notifier to use them.
// Its kinda like using middlewares for api servers.
notifier.UseService(telegramService)
notifier.UseServices(telegramService)
// Send a test message
_ = notifier.Send(
+2 -2
View File
@@ -36,7 +36,7 @@ func main() {
// Tell our notifier to use the Pushbullet service. You can repeat the above process
// for as many services as you like and just tell the notifier to use them.
notifier.UseService(service)
notifier.UseServices(service)
// Send a message
err = notifier.Send(
@@ -81,7 +81,7 @@ func main() {
// Tell our notifier to use the Pushbullet service. You can repeat the above process
// for as many services as you like and just tell the notifier to use them.
notifier.UseService(service)
notifier.UseServices(service)
// Send a message
err = notifier.Send(
+1 -1
View File
@@ -38,7 +38,7 @@ func main() {
// Tell our notifier to use the Slack service. You can repeat the above process
// for as many services as you like and just tell the notifier to use them.
notifier.UseService(slackService)
notifier.UseServices(slackService)
// Send a message
_ = notifier.Send(