mirror of
https://github.com/nikoksr/notify.git
synced 2025-02-07 13:08:12 +02:00
fix miss-spell & run gofmt -s
This commit is contained in:
parent
f3c95c504a
commit
04dce61a01
@ -6,7 +6,7 @@ package notify
|
||||
// E.g for telegram it sends the message to the specified group chat.
|
||||
//
|
||||
// The AddReceivers takes one or many strings and
|
||||
// adds these to the list of destinations for recieving messages
|
||||
// adds these to the list of destinations for receiving messages
|
||||
// e.g. slack channels, telegram chats, email addresses.
|
||||
type Notifier interface {
|
||||
Send(string, string) error
|
||||
|
@ -18,7 +18,7 @@ type SMS struct {
|
||||
// (https://help.pushbullet.com/articles/how-do-i-send-text-messages-from-my-computer/).
|
||||
// For more information about Pushbullet api token:
|
||||
// -> https://docs.pushbullet.com/#api-overview
|
||||
func NewSMS(apiToken string, deviceNickname string) (*SMS, error) {
|
||||
func NewSMS(apiToken, deviceNickname string) (*SMS, error) {
|
||||
client := pushbullet.New(apiToken)
|
||||
|
||||
dev, err := client.Device(deviceNickname)
|
||||
|
Loading…
x
Reference in New Issue
Block a user