https://github.com/resend/resend-go-example
This example shows how to use Resend with Go
https://github.com/resend/resend-go-example
Last synced: 8 months ago
JSON representation
This example shows how to use Resend with Go
- Host: GitHub
- URL: https://github.com/resend/resend-go-example
- Owner: resend
- License: mit
- Created: 2023-06-02T22:30:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T04:01:24.000Z (about 1 year ago)
- Last Synced: 2025-04-13T05:45:43.479Z (about 1 year ago)
- Language: Go
- Homepage: https://resend.com/docs/send-with-go
- Size: 11.7 KB
- Stars: 13
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with Go
This example shows how to use Resend with [Go](https://go.dev) using the [Resend Go SDK](https://github.com/resend/resend-go).
## Prerequisites
To get the most out of this guide, you’ll need to:
* [Create an API key](https://resend.com/api-keys)
* [Verify your domain](https://resend.com/domains)
## Instructions
1. Set your RESEND_API_KEY environment variable by running:
```sh
export RESEND_API_KEY="re_123456789"
```
2. Initialize your go module by running the following command:
```sh
go mod init github.com/resend/resend-go-example
```
3. Install dependencies:
```sh
go get github.com/resend/resend-go/v2
```
4. Execute the following command:
```sh
go run main.go
```
## License
See [LICENSE](LICENSE).