1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-01-07 23:01:59 +02:00

style(naming): simplify import alias for msteams library

This commit is contained in:
Niko Köser 2022-09-12 08:42:38 +02:00
parent cdd9171277
commit fd735dac9c
No known key found for this signature in database
GPG Key ID: F3F28C118DAA6375

View File

@ -3,7 +3,7 @@ package msteams
import (
"context"
goteamsnotify "github.com/atc0005/go-teams-notify/v2"
teams "github.com/atc0005/go-teams-notify/v2"
"github.com/pkg/errors"
)
@ -18,7 +18,7 @@ type MSTeams struct {
//
// -> https://github.com/atc0005/go-teams-notify#example-basic
func New() *MSTeams {
client := goteamsnotify.NewClient()
client := teams.NewClient()
m := &MSTeams{
client: client,
@ -49,7 +49,7 @@ func (m *MSTeams) AddReceivers(webHooks ...string) {
//
// -> https://github.com/atc0005/go-teams-notify#example-basic
func (m MSTeams) Send(ctx context.Context, subject, message string) error {
msgCard := goteamsnotify.NewMessageCard()
msgCard := teams.NewMessageCard()
msgCard.Title = subject
msgCard.Text = message