Browse Docs

Go Alerts SDK

The API Alerts Go SDK sends alerts from your Go code through API Alerts. Drop it into HTTP servers, CLI tools, microservices, background workers, or any Go application that needs to notify you when something important happens. Minimal setup, fire-and-forget by default with optional response handling, and zero infrastructure.

Installation

go get github.com/apialerts/apialerts-go

Usage

package main

import "github.com/apialerts/apialerts-go"

func main() {
    client := apialerts.New("YOUR-API-KEY")

    // Simple notification
    client.Send(apialerts.Event{
        Message: "Deployment successful",
    })

    // With all options
    client.Send(apialerts.Event{
        Message: "New user signed up",
        Channel: "developers",
        Link:    "https://dashboard.example.com/users/123",
        Tags:    []string{"signup", "organic"},
    })
}

Resources