To install the Go SDK, simply execute the following command on a terminal:
go get github.com/resend/resend-go/v4
First, you need to get an API key, which is available in the Resend Dashboard.
package main
import (
"fmt"
"github.com/resend/resend-go/v4"
)
func main() {
apiKey := "re_123"
client := resend.NewClient(apiKey)
params := &resend.SendEmailRequest{
To: []string{"to@example", "you@example.com"},
From: "me@exemple.io",
Text: "hello world",
Subject: "Hello from Golang",
Cc: []string{"cc@example.com"},
Bcc: []string{"cc@example.com"},
ReplyTo: "replyto@example.com",
}
sent, err := client.Emails.Send(params)
if err != nil {
panic(err)
}
fmt.Println(sent.Id)
}
You can view all the examples in the examples folder
Overall
Maintained
Code review
Go module
Latest release
Releases this year
1,157 followers · starred Oct 2023
52 followers · starred Mar 2026
179 followers · starred Dec 2025
576 followers · starred Aug 2025
To install the Go SDK, simply execute the following command on a terminal:
go get github.com/resend/resend-go/v4
First, you need to get an API key, which is available in the Resend Dashboard.
package main
import (
"fmt"
"github.com/resend/resend-go/v4"
)
func main() {
apiKey := "re_123"
client := resend.NewClient(apiKey)
params := &resend.SendEmailRequest{
To: []string{"to@example", "you@example.com"},
From: "me@exemple.io",
Text: "hello world",
Subject: "Hello from Golang",
Cc: []string{"cc@example.com"},
Bcc: []string{"cc@example.com"},
ReplyTo: "replyto@example.com",
}
sent, err := client.Emails.Send(params)
if err != nil {
panic(err)
}
fmt.Println(sent.Id)
}
You can view all the examples in the examples folder
Overall
Maintained
Code review
Go module
Latest release
Releases this year
1,157 followers · starred Oct 2023
52 followers · starred Mar 2026
179 followers · starred Dec 2025
576 followers · starred Aug 2025