This example shows how to use Resend with Go using the Resend Go SDK.
To get the most out of this guide, you’ll need to:
- Set your RESEND_API_KEY environment variable by running:
export RESEND_API_KEY="re_123456789"
- Initialize your go module by running the following command:
go mod init github.com/resend/resend-go-example
- Install dependencies:
go get github.com/resend/resend-go/v2
- Execute the following command:
go run main.go
See LICENSE.