diff --git a/Dockerfile b/Dockerfile index 07895cfb..fb4d5058 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ ARG version=latest FROM golang:$version ENV GODEBUG 'x509ignoreCN=0' -ENV GO111MODULE 'off' +ENV GO111MODULE 'auto' COPY prism/prism/nginx/cert.crt /usr/local/share/ca-certificates/cert.crt RUN update-ca-certificates @@ -11,8 +11,3 @@ WORKDIR /go/src/github.com/sendgrid/sendgrid-go COPY . . RUN make install - -# Use the last version of testify that works for older go versions, and then -# re-install to update dependencies. -RUN (cd /go/src/github.com/stretchr/testify && git checkout v1.6.0) -RUN make install diff --git a/README.md b/README.md index c8101ac1..ff225620 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ![Twilio SendGrid Logo](twilio_sendgrid_logo.png) [![BuildStatus](https://travis-ci.com/sendgrid/sendgrid-go.svg?branch=main)](https://travis-ci.com/sendgrid/sendgrid-go) -[![GoDoc](https://godoc.org/github.com/sendgrid/sendgrid-go?status.svg)](https://godoc.org/github.com/sendgrid/sendgrid-go) +[![GoDoc](https://godoc.org/github.com/sendgrid/sendgrid-go?status.svg)](https://pkg.go.dev/github.com/sendgrid/sendgrid-go/v4) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid) [![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/sendgrid-go.svg)](https://github.com/sendgrid/sendgrid-go/graphs/contributors) @@ -95,8 +95,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -129,7 +129,7 @@ package main import ( "fmt" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" "log" "os" ) @@ -176,7 +176,7 @@ package main import ( "fmt" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" "log" "os" ) diff --git a/USAGE.md b/USAGE.md index 4fee923b..1b02532e 100644 --- a/USAGE.md +++ b/USAGE.md @@ -7,7 +7,7 @@ package main import ( "fmt" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" "log" "os" ) diff --git a/base_interface.go b/base_interface.go index 45208add..65130746 100644 --- a/base_interface.go +++ b/base_interface.go @@ -8,7 +8,7 @@ import ( "time" "github.com/sendgrid/rest" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) // Version is this client library's current version diff --git a/examples/accesssettings/accesssettings.go b/examples/accesssettings/accesssettings.go index 0f33cd48..054fa9d6 100644 --- a/examples/accesssettings/accesssettings.go +++ b/examples/accesssettings/accesssettings.go @@ -5,7 +5,7 @@ import ( "log" "os" - sendgrid "github.com/sendgrid/sendgrid-go" + sendgrid "github.com/sendgrid/sendgrid-go/v4" ) // Retrieveallrecentaccessattempts : Retrieve all recent access attempts diff --git a/examples/alerts/alerts.go b/examples/alerts/alerts.go index 8d288667..98414603 100644 --- a/examples/alerts/alerts.go +++ b/examples/alerts/alerts.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // CreateanewAlert : Create a new Alert diff --git a/examples/apikeys/apikeys.go b/examples/apikeys/apikeys.go index 4135354e..af366ddc 100644 --- a/examples/apikeys/apikeys.go +++ b/examples/apikeys/apikeys.go @@ -5,7 +5,7 @@ import ( "log" "os" - sendgrid "github.com/sendgrid/sendgrid-go" + sendgrid "github.com/sendgrid/sendgrid-go/v4" ) // CreateAPIkeys : Create API keys diff --git a/examples/asm/asm.go b/examples/asm/asm.go index 528c7583..827f36fd 100644 --- a/examples/asm/asm.go +++ b/examples/asm/asm.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Createanewsuppressiongroup : Create a new suppression group diff --git a/examples/browsers/browsers.go b/examples/browsers/browsers.go index e646045d..2979e957 100644 --- a/examples/browsers/browsers.go +++ b/examples/browsers/browsers.go @@ -5,7 +5,7 @@ import ( "log" "os" - sendgrid "github.com/sendgrid/sendgrid-go" + sendgrid "github.com/sendgrid/sendgrid-go/v4" ) // Retrieveemailstatisticsbybrowser : Retrieve email statistics by browser. diff --git a/examples/campaigns/campaigns.go b/examples/campaigns/campaigns.go index 86b2a55f..bd75e796 100644 --- a/examples/campaigns/campaigns.go +++ b/examples/campaigns/campaigns.go @@ -5,7 +5,7 @@ import ( "log" "os" - sendgrid "github.com/sendgrid/sendgrid-go" + sendgrid "github.com/sendgrid/sendgrid-go/v4" ) // CreateaCampaign : Create a Campaign diff --git a/examples/categories/categories.go b/examples/categories/categories.go index 397ca975..84c13f09 100644 --- a/examples/categories/categories.go +++ b/examples/categories/categories.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Retrieveallcategories : Retrieve all categories diff --git a/examples/clients/clients.go b/examples/clients/clients.go index 27a45542..c904cc48 100644 --- a/examples/clients/clients.go +++ b/examples/clients/clients.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Retrieveemailstatisticsbyclienttype : Retrieve email statistics by client type. diff --git a/examples/contactdb/contactdb.go b/examples/contactdb/contactdb.go index 0cf50ca4..4f8fed42 100644 --- a/examples/contactdb/contactdb.go +++ b/examples/contactdb/contactdb.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // CreateaCustomField : Create a Custom Field diff --git a/examples/devices/devices.go b/examples/devices/devices.go index 76b481a6..b5ef9e1c 100644 --- a/examples/devices/devices.go +++ b/examples/devices/devices.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Retrieveemailstatisticsbydevicetype : Retrieve email statistics by device type. diff --git a/examples/emailactivity/emailactivity.go b/examples/emailactivity/emailactivity.go index 91f555b0..8582188d 100644 --- a/examples/emailactivity/emailactivity.go +++ b/examples/emailactivity/emailactivity.go @@ -6,7 +6,7 @@ import ( "net/url" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // GetMessages : Filter all messages diff --git a/examples/eventwebhook/eventwebhook.go b/examples/eventwebhook/eventwebhook.go index 3a9a0d70..b8ea82bc 100644 --- a/examples/eventwebhook/eventwebhook.go +++ b/examples/eventwebhook/eventwebhook.go @@ -6,8 +6,8 @@ import ( "os" "github.com/sendgrid/rest" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/eventwebhook" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/eventwebhook" ) // EnableSignedWebhook : Enables Signed Event Webhook. diff --git a/examples/geo/geo.go b/examples/geo/geo.go index ca6a0b75..5292816a 100644 --- a/examples/geo/geo.go +++ b/examples/geo/geo.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Retrieveemailstatisticsbycountryandstateprovince : Retrieve email statistics by country and state/province. diff --git a/examples/helpers/mail/example.go b/examples/helpers/mail/example.go index 9fdff6a1..1a3a12ab 100644 --- a/examples/helpers/mail/example.go +++ b/examples/helpers/mail/example.go @@ -6,8 +6,8 @@ import ( "fmt" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) // Minimum required to send an email diff --git a/examples/ips/ips.go b/examples/ips/ips.go index eb1e2ae3..a31ad711 100644 --- a/examples/ips/ips.go +++ b/examples/ips/ips.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // RetrieveallIPaddresses : Retrieve all IP addresses diff --git a/examples/mail/mail.go b/examples/mail/mail.go index 136f3144..caa483d2 100644 --- a/examples/mail/mail.go +++ b/examples/mail/mail.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // CreateabatchID : Create a batch ID diff --git a/examples/mailboxproviders/mailboxproviders.go b/examples/mailboxproviders/mailboxproviders.go index dfb8ee5d..dd9c92aa 100644 --- a/examples/mailboxproviders/mailboxproviders.go +++ b/examples/mailboxproviders/mailboxproviders.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Retrieveemailstatisticsbymailboxprovider : Retrieve email statistics by mailbox provider. diff --git a/examples/mailsettings/mailsettings.go b/examples/mailsettings/mailsettings.go index 4a5ee632..d83a7de8 100644 --- a/examples/mailsettings/mailsettings.go +++ b/examples/mailsettings/mailsettings.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Retrieveallmailsettings : Retrieve all mail settings diff --git a/examples/partnersettings/partnersettings.go b/examples/partnersettings/partnersettings.go index 08adf759..53349d97 100644 --- a/examples/partnersettings/partnersettings.go +++ b/examples/partnersettings/partnersettings.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Returnsalistofallpartnersettings : Returns a list of all partner settings. diff --git a/examples/scopes/scopes.go b/examples/scopes/scopes.go index bd698ba5..1f03eaa6 100644 --- a/examples/scopes/scopes.go +++ b/examples/scopes/scopes.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Retrievealistofscopesforwhichthisuserhasaccess : Retrieve a list of scopes for which this user has access. diff --git a/examples/senderauthentication/senderauthentication.go b/examples/senderauthentication/senderauthentication.go index f6d05e21..a61f07e4 100644 --- a/examples/senderauthentication/senderauthentication.go +++ b/examples/senderauthentication/senderauthentication.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Createadomainauthentication : Create a domain authentication. diff --git a/examples/senders/senders.go b/examples/senders/senders.go index cba192e6..f568e79f 100644 --- a/examples/senders/senders.go +++ b/examples/senders/senders.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // CreateaSenderIdentity : Create a Sender Identity diff --git a/examples/stats/stats.go b/examples/stats/stats.go index 2fa286f2..0fcba60a 100644 --- a/examples/stats/stats.go +++ b/examples/stats/stats.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Retrieveglobalemailstatistics : Retrieve global email statistics diff --git a/examples/subusers/subusers.go b/examples/subusers/subusers.go index 954de9ac..088b75d2 100644 --- a/examples/subusers/subusers.go +++ b/examples/subusers/subusers.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // CreateSubuser : Creates a Subuser diff --git a/examples/suppression/suppression.go b/examples/suppression/suppression.go index 421c001f..0a0fe21e 100644 --- a/examples/suppression/suppression.go +++ b/examples/suppression/suppression.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Retrieveallblocks : Retrieve all blocks diff --git a/examples/templates/templates.go b/examples/templates/templates.go index 05d7b5c0..472a7bda 100644 --- a/examples/templates/templates.go +++ b/examples/templates/templates.go @@ -5,7 +5,7 @@ import ( "log" "os" - sendgrid "github.com/sendgrid/sendgrid-go" + sendgrid "github.com/sendgrid/sendgrid-go/v4" ) // Createatransactionaltemplate : Create a transactional template. diff --git a/examples/trackingsettings/trackingsettings.go b/examples/trackingsettings/trackingsettings.go index 055fd41a..fc043a0f 100644 --- a/examples/trackingsettings/trackingsettings.go +++ b/examples/trackingsettings/trackingsettings.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // RetrieveTrackingSettings : Retrieve Tracking Settings diff --git a/examples/user/user.go b/examples/user/user.go index 92c867ce..b80b993d 100644 --- a/examples/user/user.go +++ b/examples/user/user.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) // Getausersaccountinformation : Get a user's account information. diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..f3a55713 --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module github.com/sendgrid/sendgrid-go/v4 + +go 1.16 + +require ( + github.com/sendgrid/rest v2.6.5+incompatible + github.com/stretchr/testify v1.7.0 + golang.org/x/net v0.0.0-20211007125505-59d4e928ea9d // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..2b9e0705 --- /dev/null +++ b/go.sum @@ -0,0 +1,20 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/sendgrid/rest v2.6.5+incompatible h1:MZsDqRdwKTHXNABhVgiZFLgVDN698H4QtFrTX3WlrN0= +github.com/sendgrid/rest v2.6.5+incompatible/go.mod h1:kXX7q3jZtJXK5c5qK83bSGMdV6tsOE70KbHoqJls4lE= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/net v0.0.0-20211007125505-59d4e928ea9d h1:QWMn1lFvU/nZ58ssWqiFJMd3DKIII8NYc4sn708XgKs= +golang.org/x/net v0.0.0-20211007125505-59d4e928ea9d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/helpers/inbound/README.md b/helpers/inbound/README.md index b7c06e86..08bae6e6 100644 --- a/helpers/inbound/README.md +++ b/helpers/inbound/README.md @@ -16,7 +16,7 @@ import ( "log" "net/http" - "github.com/sendgrid/sendgrid-go/helpers/inbound" + "github.com/sendgrid/sendgrid-go/v4/helpers/inbound" ) func inboundHandler(response http.ResponseWriter, request *http.Request) { diff --git a/proposal/mail-helper-refactor.md b/proposal/mail-helper-refactor.md index a2429ec5..51b6b382 100644 --- a/proposal/mail-helper-refactor.md +++ b/proposal/mail-helper-refactor.md @@ -11,8 +11,8 @@ import ( "fmt" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -50,8 +50,8 @@ import ( "fmt" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -90,8 +90,8 @@ import ( "os" "time" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -164,8 +164,8 @@ import ( "fmt" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -311,8 +311,8 @@ import ( "fmt" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -410,8 +410,8 @@ import ( "fmt" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/proposal/mail-helper-refactor_2.md b/proposal/mail-helper-refactor_2.md index 10002972..0fe6b79d 100644 --- a/proposal/mail-helper-refactor_2.md +++ b/proposal/mail-helper-refactor_2.md @@ -12,8 +12,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -51,8 +51,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -94,8 +94,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -150,8 +150,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -394,8 +394,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { @@ -474,8 +474,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/sendgrid_test.go b/sendgrid_test.go index d497ed69..bc2017c1 100644 --- a/sendgrid_test.go +++ b/sendgrid_test.go @@ -14,7 +14,7 @@ import ( "time" "github.com/sendgrid/rest" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" "github.com/stretchr/testify/assert" ) diff --git a/use-cases/attachments-with-mailer-helper.md b/use-cases/attachments-with-mailer-helper.md index 88d0ffeb..6f574a1e 100644 --- a/use-cases/attachments-with-mailer-helper.md +++ b/use-cases/attachments-with-mailer-helper.md @@ -9,8 +9,8 @@ import ( "os" "encoding/base64" "io/ioutil" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/attachments-without-mailer-helper.md b/use-cases/attachments-without-mailer-helper.md index 311a970c..15160e12 100644 --- a/use-cases/attachments-without-mailer-helper.md +++ b/use-cases/attachments-without-mailer-helper.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/custom-args-with-mailer-helper.md b/use-cases/custom-args-with-mailer-helper.md index e3b80ee3..a6003f0b 100644 --- a/use-cases/custom-args-with-mailer-helper.md +++ b/use-cases/custom-args-with-mailer-helper.md @@ -8,8 +8,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/custom-args-without-mailer-helper.md b/use-cases/custom-args-without-mailer-helper.md index fd3eaa49..258cb424 100644 --- a/use-cases/custom-args-without-mailer-helper.md +++ b/use-cases/custom-args-without-mailer-helper.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/email-activity.md b/use-cases/email-activity.md index 9dfc4591..7bbedb4c 100644 --- a/use-cases/email-activity.md +++ b/use-cases/email-activity.md @@ -9,7 +9,7 @@ import ( "net/url" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/legacy-templates-with-mailer-helper.md b/use-cases/legacy-templates-with-mailer-helper.md index 63486910..86642a75 100644 --- a/use-cases/legacy-templates-with-mailer-helper.md +++ b/use-cases/legacy-templates-with-mailer-helper.md @@ -8,8 +8,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/legacy-templates-without-mailer-helper.md b/use-cases/legacy-templates-without-mailer-helper.md index c3578ac7..e1da59f6 100644 --- a/use-cases/legacy-templates-without-mailer-helper.md +++ b/use-cases/legacy-templates-without-mailer-helper.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/personalization-sending-single-email-single-recipient-with-cc-bcc.md b/use-cases/personalization-sending-single-email-single-recipient-with-cc-bcc.md index 670653dd..08efbdc1 100644 --- a/use-cases/personalization-sending-single-email-single-recipient-with-cc-bcc.md +++ b/use-cases/personalization-sending-single-email-single-recipient-with-cc-bcc.md @@ -8,8 +8,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/personalization-sending-single-email-single-recipient-with-cc.md b/use-cases/personalization-sending-single-email-single-recipient-with-cc.md index 6d0c6128..3353136e 100644 --- a/use-cases/personalization-sending-single-email-single-recipient-with-cc.md +++ b/use-cases/personalization-sending-single-email-single-recipient-with-cc.md @@ -9,8 +9,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/personalization-sending-single-email-single-recipient.md b/use-cases/personalization-sending-single-email-single-recipient.md index bef06379..3cd11257 100644 --- a/use-cases/personalization-sending-single-email-single-recipient.md +++ b/use-cases/personalization-sending-single-email-single-recipient.md @@ -8,8 +8,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/personalization-sending-single-email-to-multiple-recipients.md b/use-cases/personalization-sending-single-email-to-multiple-recipients.md index 1224c86c..83f25bd8 100644 --- a/use-cases/personalization-sending-single-email-to-multiple-recipients.md +++ b/use-cases/personalization-sending-single-email-to-multiple-recipients.md @@ -8,8 +8,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/personalization-sending-single-email-to-single-recipients-with-multiple-cc-bcc.md b/use-cases/personalization-sending-single-email-to-single-recipients-with-multiple-cc-bcc.md index bbfbaa32..4c1bd2ca 100644 --- a/use-cases/personalization-sending-single-email-to-single-recipients-with-multiple-cc-bcc.md +++ b/use-cases/personalization-sending-single-email-to-single-recipients-with-multiple-cc-bcc.md @@ -8,8 +8,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/personalization-sending-two-emails-to-two-groups-recipients-from-two-different-from-emails.md b/use-cases/personalization-sending-two-emails-to-two-groups-recipients-from-two-different-from-emails.md index b2f1e35e..21a82af3 100644 --- a/use-cases/personalization-sending-two-emails-to-two-groups-recipients-from-two-different-from-emails.md +++ b/use-cases/personalization-sending-two-emails-to-two-groups-recipients-from-two-different-from-emails.md @@ -9,8 +9,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/personalization-sending-two-emails-to-two-groups-recipients.md b/use-cases/personalization-sending-two-emails-to-two-groups-recipients.md index e8a3d887..57acc6d9 100644 --- a/use-cases/personalization-sending-two-emails-to-two-groups-recipients.md +++ b/use-cases/personalization-sending-two-emails-to-two-groups-recipients.md @@ -9,8 +9,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/personalization-without-helper-sending-same-email-to-multiple-recipients.md b/use-cases/personalization-without-helper-sending-same-email-to-multiple-recipients.md index e815f04f..9c2847c3 100644 --- a/use-cases/personalization-without-helper-sending-same-email-to-multiple-recipients.md +++ b/use-cases/personalization-without-helper-sending-same-email-to-multiple-recipients.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/personalization-without-helper-sending-single-email-single-recipient-with-cc-bcc.md b/use-cases/personalization-without-helper-sending-single-email-single-recipient-with-cc-bcc.md index 7b78ab77..d9bc2770 100644 --- a/use-cases/personalization-without-helper-sending-single-email-single-recipient-with-cc-bcc.md +++ b/use-cases/personalization-without-helper-sending-single-email-single-recipient-with-cc-bcc.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/personalization-without-helper-sending-single-email-single-recipient-with-cc.md b/use-cases/personalization-without-helper-sending-single-email-single-recipient-with-cc.md index 5f43c209..4b467e70 100644 --- a/use-cases/personalization-without-helper-sending-single-email-single-recipient-with-cc.md +++ b/use-cases/personalization-without-helper-sending-single-email-single-recipient-with-cc.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/personalization-without-helper-sending-single-email-single-recipient.md b/use-cases/personalization-without-helper-sending-single-email-single-recipient.md index 236880d3..11d64890 100644 --- a/use-cases/personalization-without-helper-sending-single-email-single-recipient.md +++ b/use-cases/personalization-without-helper-sending-single-email-single-recipient.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/personalization-without-helper-sending-single-email-to-single-recipients-with-multiple-cc-bcc.md b/use-cases/personalization-without-helper-sending-single-email-to-single-recipients-with-multiple-cc-bcc.md index 042a4f3a..78f1be44 100644 --- a/use-cases/personalization-without-helper-sending-single-email-to-single-recipients-with-multiple-cc-bcc.md +++ b/use-cases/personalization-without-helper-sending-single-email-to-single-recipients-with-multiple-cc-bcc.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/personalization-without-helper-sending-two-emails-to-two-groups-recipients-from-two-different-from-emails.md b/use-cases/personalization-without-helper-sending-two-emails-to-two-groups-recipients-from-two-different-from-emails.md index b022775d..d43cfdd8 100644 --- a/use-cases/personalization-without-helper-sending-two-emails-to-two-groups-recipients-from-two-different-from-emails.md +++ b/use-cases/personalization-without-helper-sending-two-emails-to-two-groups-recipients-from-two-different-from-emails.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/personalization-without-helper-sending-two-emails-to-two-groups-recipients.md b/use-cases/personalization-without-helper-sending-two-emails-to-two-groups-recipients.md index ad86b5d5..9d7b238a 100644 --- a/use-cases/personalization-without-helper-sending-two-emails-to-two-groups-recipients.md +++ b/use-cases/personalization-without-helper-sending-two-emails-to-two-groups-recipients.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/sections-with-mailer-helper.md b/use-cases/sections-with-mailer-helper.md index 0d41778f..cc772f16 100644 --- a/use-cases/sections-with-mailer-helper.md +++ b/use-cases/sections-with-mailer-helper.md @@ -8,8 +8,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/sections-without-mailer-helper.md b/use-cases/sections-without-mailer-helper.md index cb507a66..b506d23f 100644 --- a/use-cases/sections-without-mailer-helper.md +++ b/use-cases/sections-without-mailer-helper.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/setup-domain-authentication.md b/use-cases/setup-domain-authentication.md index a7c69683..70895b79 100644 --- a/use-cases/setup-domain-authentication.md +++ b/use-cases/setup-domain-authentication.md @@ -12,7 +12,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/substitutions-with-mailer-helper.md b/use-cases/substitutions-with-mailer-helper.md index aac67a93..843f7b07 100644 --- a/use-cases/substitutions-with-mailer-helper.md +++ b/use-cases/substitutions-with-mailer-helper.md @@ -8,8 +8,8 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" ) func main() { diff --git a/use-cases/substitutions-without-mailer-helper.md b/use-cases/substitutions-without-mailer-helper.md index 14c7ad38..d6114937 100644 --- a/use-cases/substitutions-without-mailer-helper.md +++ b/use-cases/substitutions-without-mailer-helper.md @@ -8,7 +8,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() { diff --git a/use-cases/transactional-templates-with-mailer-helper.md b/use-cases/transactional-templates-with-mailer-helper.md index 17847832..7d568e75 100644 --- a/use-cases/transactional-templates-with-mailer-helper.md +++ b/use-cases/transactional-templates-with-mailer-helper.md @@ -5,8 +5,8 @@ package main import ( "fmt" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" "os" ) diff --git a/use-cases/transactional-templates-without-mailer-helper.md b/use-cases/transactional-templates-without-mailer-helper.md index 8a7682d4..a29c039e 100644 --- a/use-cases/transactional-templates-without-mailer-helper.md +++ b/use-cases/transactional-templates-without-mailer-helper.md @@ -5,8 +5,8 @@ package main import ( "fmt" - "github.com/sendgrid/sendgrid-go" - "github.com/sendgrid/sendgrid-go/helpers/mail" + "github.com/sendgrid/sendgrid-go/v4" + "github.com/sendgrid/sendgrid-go/v4/helpers/mail" "os" ) diff --git a/use-cases/view-email-stats.md b/use-cases/view-email-stats.md index c9f13993..81edc11e 100644 --- a/use-cases/view-email-stats.md +++ b/use-cases/view-email-stats.md @@ -10,7 +10,7 @@ import ( "log" "os" - "github.com/sendgrid/sendgrid-go" + "github.com/sendgrid/sendgrid-go/v4" ) func main() {