FoPost LogoFoPost Docs

Go SDK

FoPost Go SDK for Go applications.

Go SDK

Coming Soon

The OwlStack Go SDK is currently in development. Sign up for updates at owlstack.app to be notified when it's available.

What to Expect

The Go SDK will provide a native Go client for the OwlStack API, designed for:

  • Idiomatic Go with proper error handling
  • Context support for cancellation and timeouts
  • Minimal dependencies
  • Available via go get github.com/owlstack/owlstack-go

Preview

package main

import (
    "context"
    "fmt"
    "os"

    "github.com/owlstack/owlstack-go"
)

func main() {
    client := owlstack.NewClient(os.Getenv("OWLSTACK_API_KEY"))

    result, err := client.Publish(context.Background(), &owlstack.PublishRequest{
        Content:   "Hello from Go!",
        Platforms: []owlstack.Platform{owlstack.Twitter, owlstack.LinkedIn},
        Hashtags:  []string{"golang", "automation"},
    })
    if err != nil {
        fmt.Fprintf(os.Stderr, "error: %v\n", err)
        os.Exit(1)
    }

    for _, r := range result {
        fmt.Printf("%s: %s\n", r.Platform, r.URL)
    }
}

In the Meantime

You can use the OwlStack REST API directly from any Go application using net/http.

On this page