Telesink Go SDK
Telesink is built in Ruby on Rails, so Ruby came first, followed by JavaScript, PHP, and now the official Telesink Go SDK is here.
The github.com/telesink/telesink-go package brings the same dead-simple, zero-dependency experience to any Go application — whether you're building microservices, CLI tools, APIs, background workers, or high-performance backends.
It is deliberately tiny, uses only the Go standard library, and gets
completely out of your way. One go get, one environment
variable, and you’re sending real-time events instantly.
Installation
Run:
go get github.com/telesink/telesink-go
Configuration
The SDK is configured entirely through environment variables. No structs to instantiate, no config files, no YAML.
Set your sink endpoint:
export TELESINK_ENDPOINT=https://app.telesink.com/api/v1/sinks/your_sink_token_here/events
For self-hosted Telesink instances, just change the URL to point at your own server.
To disable tracking (for example in tests or local development):
export TELESINK_DISABLED=true
Usage
package main
import (
"github.com/telesink/telesink-go"
)
func main() {
telesink.Track(telesink.Event{
Event: "User signed up",
Text: "[email protected]",
Emoji: "👤",
Properties: map[string]any{
"plan": "pro",
"source": "landing_page",
"user_id": 123,
"email": "[email protected]",
},
// OccurredAt and IdempotencyKey are optional (auto-filled)
})
}
The function returns true if the event was sent successfully and
false otherwise (disabled, missing endpoint, network error, or
non-2xx response). It will never panic — any errors are
logged to stderr and the call fails gracefully so your app stays happy.
What’s under the hood
The entire package is small, clean, and built with Go best practices using only the standard library. It:
- adds an
Idempotency-Keyheader automatically - tags every payload with
sdk: { name: "telesink.go", version: "1.0.0" } - times out after 3 seconds
- works identically with the hosted version and any self-hosted instance
Next steps
Ruby → JavaScript → PHP → Go. I’ll be shipping the official Python SDK and more next — let me know on X which one you want first.
Other official Telesink SDKs
The complete source is at github.com/telesink/telesink-go. It’s MIT licensed, obviously.
Now go connect your Go app and watch events appear instantly in your Telesink feed.
Follow along on X at @kyrylo.