mirror of
https://github.com/nikoksr/notify.git
synced 2025-01-24 03:16:35 +02:00
style(naming): simplify import alias for msteams library
This commit is contained in:
parent
cdd9171277
commit
fd735dac9c
@ -3,7 +3,7 @@ package msteams
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
goteamsnotify "github.com/atc0005/go-teams-notify/v2"
|
teams "github.com/atc0005/go-teams-notify/v2"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ type MSTeams struct {
|
|||||||
//
|
//
|
||||||
// -> https://github.com/atc0005/go-teams-notify#example-basic
|
// -> https://github.com/atc0005/go-teams-notify#example-basic
|
||||||
func New() *MSTeams {
|
func New() *MSTeams {
|
||||||
client := goteamsnotify.NewClient()
|
client := teams.NewClient()
|
||||||
|
|
||||||
m := &MSTeams{
|
m := &MSTeams{
|
||||||
client: client,
|
client: client,
|
||||||
@ -49,7 +49,7 @@ func (m *MSTeams) AddReceivers(webHooks ...string) {
|
|||||||
//
|
//
|
||||||
// -> https://github.com/atc0005/go-teams-notify#example-basic
|
// -> https://github.com/atc0005/go-teams-notify#example-basic
|
||||||
func (m MSTeams) Send(ctx context.Context, subject, message string) error {
|
func (m MSTeams) Send(ctx context.Context, subject, message string) error {
|
||||||
msgCard := goteamsnotify.NewMessageCard()
|
msgCard := teams.NewMessageCard()
|
||||||
msgCard.Title = subject
|
msgCard.Title = subject
|
||||||
msgCard.Text = message
|
msgCard.Text = message
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user