Help us shape the future of Go! Take the 2026 Go Developer Survey

formalingo

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 4 Imported by: 0

README

Formalingo Go SDK

Official Go SDK for the Formalingo API, generated with Microsoft Kiota.

Installation

go get github.com/Formalingo/sdk-go

Quick Start

package main

import (
    "context"
    "fmt"

    formalingo "github.com/Formalingo/sdk-go"
)

func main() {
    client, err := formalingo.NewClient("af_live_YOUR_KEY")
    if err != nil {
        panic(err)
    }

    ctx := context.Background()

    // List forms
    forms, err := client.Api().V1().Forms().Get(ctx, nil)

    // Create a form
    body := &models.CreateFormBody{
        Title:       to.Ptr("Customer Satisfaction Survey"),
        Description: to.Ptr("Help us improve our service."),
    }
    form, err := client.Api().V1().Forms().Post(ctx, body, nil)

    // Get a specific form
    details, err := client.Api().V1().Forms().ByFormId("FORM_ID").Get(ctx, nil)

    // Delete a form
    err = client.Api().V1().Forms().ByFormId("FORM_ID").Delete(ctx, nil)
}

Custom Base URL

client, err := formalingo.NewClient("af_live_YOUR_KEY", "http://localhost:3000")

Publishing

Go modules require no registry account. Publishing is just git tags:

git tag v0.1.0
git push origin v0.1.0

Consumers install with:

go get github.com/Formalingo/sdk-go@v0.1.0

The module auto-appears on pkg.go.dev after first request.

Documentation

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(apiKey string, baseURL ...string) (*client.FormalingoClient, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL