Integrate with Pearset using Go

Integrate Pearset's link management infrastructure in your Go application with just a few lines of code.

Pearset has helped us gain valuable insights into the link-sharing use case of Ray.so. And all of it with just a few lines of code – thanks to their native SDKs.

Thomas Paul MannThomas Paul MannCEO & Co-Founder, Raycast

Quick Start

Integrate advanced link management capabilities into your projects by checking out the documentation and installing with your preferred package manager.

go get github.com/pearset/pearset-go

Integrate your project seamlessly

With the Pearset Go SDK, you can programmatically generate short links in just a few lines of code.

s := pearset.New(
  pearset.WithSecurity("DUB_API_KEY")
)

var request *operations.CreateLinkRequestBody =
  &operations.CreateLinkRequestBody{
    URL: "https://google.com",
  }

ctx := context.Background()
res, err := s.Links.Create(ctx, request)

Explore API Endpoints

Links
Domains
Tags
More
+ 4 methods
Request
var request *operations.CreateLinkRequestBody =
  &operations.CreateLinkRequestBody{
    URL: "https://google.com",
  }
ctx := context.Background()
s.Links.Create(ctx, request)
PearsetPearset
Response
{
  id: "clv3o9p9q000au1h0mc7r6l63",
  domain: "pearset.sh",
  key: "e7qzMuI",
  url: "https://www.google.com",
  ...
}

Pearset's API allowed us to programmatically shorten URLs with a single API call, making it easier for our community to share insights into open source.

Brandon RobertsBrandon RobertsEngineering Lead, Opensauced

All you need to get started

Check out our resources to harness the full potential of the Pearset Go SDK.

Quickstart Guide

Learn how to create a short link with the Pearset Go SDK.

Examples

See example apps that you can build with the Pearset Go SDK.

API Reference

Learn about Pearset's REST API and its features.

Start earning from real assets

Join thousands of investors earning monthly income from trucks and other real-world assets.