Go quickstart
Create a task with the GA Go SDK, version 1.x.
package main
import (
"context"
"fmt"
quill "github.com/sairahul1526/quill-sdk-go"
)
func main() {
client := quill.NewClient(quill.WithToken("QUILL_TOKEN"))
task, err := client.Tasks.Create(context.Background(), quill.CreateTaskInput{Queue: "emails", Payload: map[string]any{"template": "welcome", "userId": "u_123"}})
if err != nil { panic(err) }
fmt.Println(task.ID)
}Related: tasks · retry policy · API reference