Skip to content

Commit

Permalink
removed deprecated example
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Dec 18, 2024
1 parent 6ffd8c7 commit 353896f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions examples/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,19 +545,6 @@ func ListMailingLists(domain, apiKey string) ([]mailgun.MailingList, error) {
return result, nil
}

func ParseAddress(apiKey string) ([]string, []string, error) {
mv := mailgun.NewEmailValidator(apiKey)

ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
defer cancel()

return mv.ParseAddresses(ctx,
"Alice <[email protected]>",
"[email protected]",
// ...
)
}

func GetRoute(domain, apiKey string) (mailgun.Route, error) {
mg := mailgun.NewMailgun(domain, apiKey)

Expand Down

0 comments on commit 353896f

Please sign in to comment.