resend/resend-go

Resend's Official Go SDK

Go

281

135 commits

updated Oct 13, 2026

See the code

README

Resend Go SDK

License: MIT Build Release Go Reference

Installation

To install the Go SDK, simply execute the following command on a terminal:

go get github.com/resend/resend-go/v4

Setup

First, you need to get an API key, which is available in the Resend Dashboard.

Example

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

resend/resend-go

Resend's Official Go SDK

Go

281

135 commits

updated Oct 13, 2026

See the code

README

Resend Go SDK

License: MIT Build Release Go Reference

Installation

To install the Go SDK, simply execute the following command on a terminal:

go get github.com/resend/resend-go/v4

Setup

First, you need to get an API key, which is available in the Resend Dashboard.

Example

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

Project health

Overall

7.5/10

Maintained

10/10

Code review

10/10
OpenSSF Scorecard

Latest release

v2.28.0 · Oct 29, 2025

Releases this year

2

Significant stargazers

Lunny Xiao

1,157 followers · starred Oct 2023

Kenzo Wada

52 followers · starred Mar 2026

Prince John Wesley

179 followers · starred Dec 2025

Bruce MacDonald

576 followers · starred Aug 2025